Class UIAbstractGlobalModulator
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.lx.studio.ui.modulation.UIModulator
heronarts.lx.studio.ui.modulation.UIAbstractGlobalModulator
- All Implemented Interfaces:
UIContainer
,UIContextActions
,UICopy
,UIDuplicate
,UIKeyFocus
,UIMouseFocus
,UIPaste
,UITriggerTarget
,LXLoopTask
,Iterable<UIObject>
- Direct Known Subclasses:
UIComponentModulator
,UIGlobalModulator
public abstract class UIAbstractGlobalModulator
extends UIModulator
implements UIMouseFocus, UIKeyFocus, UITriggerTarget, UIDuplicate, UIContextActions
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
class
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dContainer
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout, UI2dContainer.Position
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder
Nested classes/interfaces inherited from interface heronarts.glx.ui.UIContextActions
UIContextActions.Action
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
final LXComponent
protected static final int
protected static final int
static final int
final UI2dContainer
final LXModulator
protected static final int
protected static final int
protected final UITextBox
protected static final int
protected final UI2dComponent
Fields inherited from class heronarts.glx.ui.UI2dComponent
debug, debugName, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y
-
Constructor Summary
ConstructorDescriptionUIAbstractGlobalModulator
(UI ui, LX lx, LXComponent component, boolean isGlobalModulator, float x, float y, float w, float h) -
Method Summary
Modifier and TypeMethodDescription_addModulation
(UIAbstractGlobalModulator.UIModulation uiModulation) _removeModulation
(LXParameterModulation modulation) addModulation
(LXCompoundModulation modulation) addTrigger
(LXTriggerModulation trigger) Returns a list of context actions that should be shown for this itemboolean
onCopy()
void
Subclasses should override this method to perform their drawing functions.void
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoid
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsvoid
onPaste
(LXClipboardItem item) removeModulation
(LXCompoundModulation modulation) removeTrigger
(LXTriggerModulation trigger) setExpanded
(boolean expanded) Methods inherited from class heronarts.lx.studio.ui.modulation.UIModulator
getModulationSourceUI, isDeviceModulator, setModulationSourceUI, showModulatorError
Methods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getContentHeight, getContentTarget, getContentWidth, getLeftPadding, getRightPadding, getScrollHeight, getScrollWidth, getTopPadding, hasDragToReorder, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, onReflow, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPadding
Methods inherited from class heronarts.glx.ui.UI2dComponent
addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getMappableParameter, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, onResize, redraw, removeFromContainer, removeFromContainer, setBackground, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBorderColor, setBorderRounding, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setContainerPosition, setDebug, setDebug, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusBackgroundColor, setFocusColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY, vgRoundedRect, vgRoundedRect, vgRoundedRect
Methods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, blur, bringToFront, dispose, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onKeyReleased, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseScroll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface heronarts.glx.ui.UIDuplicate
onDuplicate
-
Field Details
-
PADDING
protected static final int PADDING- See Also:
-
RUNNING_X
protected static final int RUNNING_X- See Also:
-
TITLE_X
protected static final int TITLE_X- See Also:
-
CONTENT_Y
protected static final int CONTENT_Y- See Also:
-
MAP_WIDTH
public static final int MAP_WIDTH- See Also:
-
LOOP_WIDTH
protected static final int LOOP_WIDTH- See Also:
-
COLOR_WIDTH
protected static final int COLOR_WIDTH- See Also:
-
component
-
modulator
-
toggleTarget
-
title
-
modulations
-
-
Constructor Details
-
UIAbstractGlobalModulator
public UIAbstractGlobalModulator(UI ui, LX lx, LXComponent component, boolean isGlobalModulator, float x, float y, float w, float h)
-
-
Method Details
-
setExpanded
-
toggleExpanded
-
isExpanded
public boolean isExpanded() -
_addModulation
public UIAbstractGlobalModulator _addModulation(UIAbstractGlobalModulator.UIModulation uiModulation) -
_removeModulation
-
addModulation
-
removeModulation
-
addTrigger
-
removeTrigger
-
getTriggerTarget
- Specified by:
getTriggerTarget
in interfaceUITriggerTarget
-
onDraw
Description copied from class:UI2dComponent
Subclasses should override this method to perform their drawing functions.- Overrides:
onDraw
in classUI2dContainer
- Parameters:
ui
- UI contextvg
- Graphics context
-
onKeyPressed
Description copied from class:UIEventHandler
Subclasses override to receive key events- Overrides:
onKeyPressed
in classUI2dContainer
- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onCopy
-
onPaste
-
getContextActions
Description copied from interface:UIContextActions
Returns a list of context actions that should be shown for this item- Specified by:
getContextActions
in interfaceUIContextActions
- Returns:
- List of context actions
-