Class UIGlobalModulator
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
heronarts.lx.studio.ui.modulation.UIGlobalModulator
- All Implemented Interfaces:
UI2dComponent.UIDragReorder
,UIContainer
,UIContextActions
,UICopy
,UIDuplicate
,UIKeyFocus
,UIMouseFocus
,UIPaste
,UITriggerTarget
,LXLoopTask
,Iterable<UIObject>
public class UIGlobalModulator
extends UIAbstractGlobalModulator
implements UI2dComponent.UIDragReorder
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.studio.ui.modulation.UIAbstractGlobalModulator
UIAbstractGlobalModulator.UICompoundModulation, UIAbstractGlobalModulator.UIModulation
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
Fields inherited from class heronarts.lx.studio.ui.modulation.UIAbstractGlobalModulator
COLOR_WIDTH, component, CONTENT_Y, LOOP_WIDTH, MAP_WIDTH, modulations, modulator, PADDING, RUNNING_X, title, TITLE_X, toggleTarget
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
ConstructorDescriptionUIGlobalModulator
(LXStudio.UI ui, LXStudio lx, LXModulator modulator, float w) -
Method Summary
Modifier and TypeMethodDescriptionboolean
isValidDragPosition
(float mx, float my) Whether this mouse press position is valid to initiate draggingvoid
onDragReorder
(UI2dContainer container, UI2dComponent child, int dragIndex) Callback when an attempt is made to reorder this component in its containerMethods inherited from class heronarts.lx.studio.ui.modulation.UIAbstractGlobalModulator
_addModulation, _removeModulation, addModulation, addTrigger, getContextActions, getTriggerTarget, isExpanded, onCopy, onDraw, onKeyPressed, onMousePressed, onPaste, removeModulation, removeTrigger, setExpanded, toggleExpanded
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
-
controls
-
-
Constructor Details
-
UIGlobalModulator
-
-
Method Details
-
onDragReorder
Description copied from interface:UI2dComponent.UIDragReorder
Callback when an attempt is made to reorder this component in its container- Specified by:
onDragReorder
in interfaceUI2dComponent.UIDragReorder
- Parameters:
container
- Parent containerchild
- Element being reordereddragIndex
- Targeted index in parent container
-
isValidDragPosition
public boolean isValidDragPosition(float mx, float my) Description copied from interface:UI2dComponent.UIDragReorder
Whether this mouse press position is valid to initiate dragging- Specified by:
isValidDragPosition
in interfaceUI2dComponent.UIDragReorder
- Parameters:
mx
- Mouse x positionmy
- Mouse y position- Returns:
- Whether to commence dragging from here
-