Package heronarts.lx.studio.ui.clip
Class UIClipEnvelope.UIClipLaneMetadata
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.lx.studio.ui.clip.UIClipEnvelope.UIClipLaneMetadata
- All Implemented Interfaces:
UI2dComponent.UIDragReorder
,UIContainer
,UIFocus
,UIKeyFocus
,UIMouseFocus
,UITabFocus
,LXLoopTask
,Iterable<UIObject>
- Enclosing class:
UIClipEnvelope<T extends LXClipLane<?>>
protected class UIClipEnvelope.UIClipLaneMetadata
extends UI2dContainer
implements UIFocus, UI2dComponent.UIDragReorder
Row header for LXClipLane
-
Nested Class Summary
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
-
Field Summary
FieldsFields inherited from class heronarts.glx.ui.UI2dContainer
bottomPadding, childSpacingX, childSpacingY, leftPadding, rightPadding, topPadding
Fields inherited from class heronarts.glx.ui.UI2dComponent
borderRoundingBottomLeft, borderRoundingBottomRight, borderRoundingTopLeft, borderRoundingTopRight, debug, debugName, hasBorderRounding, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y
-
Constructor Summary
ConstructorsModifierConstructorDescriptionUIClipLaneMetadata
(UI ui) protected
UIClipLaneMetadata
(UI ui, float labelPadding) -
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 containervoid
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoid
onMouseDragged
(MouseEvent mouseEvent, float mx, float my, float dx, float dy) Subclasses override to receive mouse eventsvoid
onMouseMoved
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsvoid
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsMethods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getChildSpacingX, getChildSpacingY, getContentHeight, getContentTarget, getContentWidth, getLeftPadding, getRightPadding, getScrollHeight, getScrollWidth, getTopPadding, hasDragToReorder, isEmpty, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, onDraw, onReflow, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPadding
Methods inherited from class heronarts.glx.ui.UI2dComponent
addAfterSibling, addBeforeSibling, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawBorder, drawComponentBackground, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getBottomMargin, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getLeftMargin, getMappableParameter, getNextSibling, getNextSibling, getParent, getPrevSibling, getPrevSibling, getRightMargin, getTopMargin, 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, addLoopTask, blur, bringToFront, dispose, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, 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
-
Field Details
-
resizing
protected boolean resizing
-
-
Constructor Details
-
UIClipLaneMetadata
-
UIClipLaneMetadata
-
-
Method Details
-
onMouseMoved
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMouseMoved
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onMouseDragged
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMouseDragged
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatedx
- movement in xdy
- movement in y
-
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
-
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
-
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
-