Package heronarts.glx.ui
Class UI
java.lang.Object
heronarts.glx.ui.UI
- Direct Known Subclasses:
LXStudio.UI
Top-level container for all overlay UI elements.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionfinal StringParameter
protected UI.CoordinateSystem
final MutableParameter
final GLX
final UI.Profiler
final UITheme
UI look and feelstatic Thread
final VGraphics
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddLayer
(UI2dContext layer) Add a 2d context to this UIaddLayer
(UI3dContext layer) Add a 3d context to this UIaddLoopTask
(LXLoopTask loopTask) Add a task to be performed on every loop of the UI engine.protected void
bringToTop
(UI2dContext layer) Brings a layer to the top of the UI stackclearContextOverlay
(UI2dComponent contextOverlay) void
dispose()
final void
draw()
Draws the UIprotected void
endDraw()
void
void
static UI
get()
float
float
float
float
getWidth()
void
mapModulationSource
(UIModulationSource modulationSource) mapModulationSource
(LXModulationEngine modulationEngine, UIModulationSource modulationSource) mapTriggerSource
(UITriggerSource triggerSource) mapTriggerSource
(LXModulationEngine modulationEngine, UITriggerSource triggerSource) void
mouseEvent
(MouseEvent mouseEvent) protected void
onResize()
void
redraw()
removeLayer
(UI2dContext layer) Remove a 2d context from this UIremoveLayer
(UI3dContext layer) removeLoopTask
(LXLoopTask loopTask) Remove a task from the UI enginevoid
resize()
setCoordinateSystem
(UI.CoordinateSystem coordinateSystem) setHighlightModulationTarget
(LXParameter highlightModulationTarget) setHighlightParameterModulation
(LXParameterModulation highlightParameterModulation) void
setMouseoverHelpText
(String helpText) setTopLevelKeyEventHandler
(UIEventHandler eventHandler) Sets an object to handle top-level input eventsshowContextDialogMessage
(String message) showContextOverlay
(UI2dComponent contextOverlay) void
-
Field Details
-
thread
-
profiler
-
lx
-
vg
-
contextualHelpText
-
coordinateSystem
-
theme
UI look and feel -
highlightModulationTargetChanged
-
-
Constructor Details
-
UI
- Throws:
IOException
-
-
Method Details
-
showError
public void showError() -
getHighlightModulationTarget
-
setHighlightModulationTarget
-
setHighlightParameterModulation
-
setCoordinateSystem
-
redraw
public void redraw() -
get
-
focusPrev
-
focusNext
-
setMouseoverHelpText
-
setTopLevelKeyEventHandler
Sets an object to handle top-level input events- Parameters:
eventHandler
- Event handler- Returns:
- this
-
mapModulationOff
-
mapTriggerSource
-
mapTriggerSource
-
mapTriggerSource
-
mapModulationSource
-
mapModulationSource
-
mapModulationSource
public UI mapModulationSource(LXModulationEngine modulationEngine, UIModulationSource modulationSource) -
addLoopTask
Add a task to be performed on every loop of the UI engine.- Parameters:
loopTask
- Task to perform on every UI loop- Returns:
- this
-
removeLoopTask
Remove a task from the UI engine- Parameters:
loopTask
- Task to stop performing on every UI loop- Returns:
- this
-
addLayer
Add a 2d context to this UI- Parameters:
layer
- UI layer- Returns:
- this
-
removeLayer
Remove a 2d context from this UI- Parameters:
layer
- UI layer- Returns:
- this UI
-
addLayer
Add a 3d context to this UI- Parameters:
layer
- 3d context- Returns:
- this UI
-
removeLayer
-
bringToTop
Brings a layer to the top of the UI stack- Parameters:
layer
- UI layer- Returns:
- this UI
-
hideContextOverlay
-
showContextDialogMessage
-
clearContextOverlay
-
showContextOverlay
-
getContentScaleX
public float getContentScaleX() -
getContentScaleY
public float getContentScaleY() -
getWidth
public float getWidth() -
getHeight
public float getHeight() -
resize
public void resize() -
draw
public final void draw()Draws the UI -
beginDraw
protected void beginDraw() -
endDraw
protected void endDraw() -
onResize
protected void onResize() -
mouseEvent
-
keyEvent
-
dispose
public void dispose()
-