Package heronarts.lx.studio.ui.clip
Class UIClipEnvelope<T extends LXClipLane<?>>
- All Implemented Interfaces:
UI2dComponent.Scissored
,UIContainer
,UIFocus
,UIKeyFocus
,UIMouseFocus
,UITabFocus
,LXLoopTask
,LXParameterListener
,Iterable<UIObject>
- Direct Known Subclasses:
UIMidiClipEnvelope
,UIParameterClipEnvelope
,UIPatternClipEnvelope
public abstract class UIClipEnvelope<T extends LXClipLane<?>>
extends UIClipLane
implements UIFocus, UI2dComponent.Scissored, LXParameterListener
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Row header for LXClipLaneNested 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.lx.studio.ui.timeline.lane.UIClipLane
hasSelection, selectionEnd, selectionStart
Fields inherited from class heronarts.lx.studio.ui.timeline.lane.UIGridLane
clip, grid, hasGridLabels, hasGridLines
Fields inherited from class heronarts.lx.studio.ui.timeline.lane.UILane
lens, sideBarComponent, timeline
Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UIClipEnvelope<T>.UIClipLaneMetadata
constructMetadata
(UI ui) static UIClipEnvelope
<?> create
(UI ui, UIClipEditor clipEditor, LXClipLane<?> lane) protected void
deleteLane
(KeyEvent keyEvent) Subclasses may override if they're deleteableprotected void
Subclasses can override to delete events within the selection rangevoid
dispose()
protected void
onBlur()
Focus lostprotected void
Subclasses override when element is focusedprotected void
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoid
Invoked when the value of a parameter is changed.Methods inherited from class heronarts.lx.studio.ui.timeline.lane.UIClipLane
clearMouseSelection, clearSelection, drawSelection, moveSelection, moveSelection, onMouseDragged, onMousePressed, onMouseReleased, setMouseSelectionEnabled, setSelection, setSelectionEnabled, setSelectionEnd, setSelectionStart
Methods inherited from class heronarts.lx.studio.ui.timeline.lane.UIGridLane
CursorOp, drawBackground, drawGridLabel, getGridLineColor, registerClip, setAlternateGridColors, setClip, shouldSnap, unregisterClip
Methods inherited from class heronarts.lx.studio.ui.timeline.lane.UILane
getSideBarComponent, onMouseScroll, onResize, setSideBarComponent
Methods 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, 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, 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, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, onMouseMoved, onMouseOut, onMouseOver
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
-
lane
-
HEIGHT_EXPANDED
public static final int HEIGHT_EXPANDED- See Also:
-
HEIGHT_COLLAPSED
public static final int HEIGHT_COLLAPSED- See Also:
-
-
Constructor Details
-
UIClipEnvelope
-
-
Method Details
-
create
-
constructMetadata
-
onParameterChanged
Description copied from interface:LXParameterListener
Invoked when the value of a parameter is changed.- Specified by:
onParameterChanged
in interfaceLXParameterListener
- Parameters:
p
- The parameter that has changed its value
-
onFocus
Description copied from class:UIObject
Subclasses override when element is focused -
onBlur
protected void onBlur()Description copied from class:UIClipLane
Focus lost- Overrides:
onBlur
in classUIClipLane
-
onKeyPressed
Description copied from class:UIEventHandler
Subclasses override to receive key events- Overrides:
onKeyPressed
in classUIClipLane
- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
deleteSelection
protected void deleteSelection()Description copied from class:UIClipLane
Subclasses can override to delete events within the selection range- Overrides:
deleteSelection
in classUIClipLane
-
deleteLane
Subclasses may override if they're deleteable- Parameters:
keyEvent
- Key event triggering delete action
-
dispose
public void dispose()- Overrides:
dispose
in classUIClipLane
-