Package heronarts.lx.studio.ui.timeline
Class UITimeline
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.lx.studio.ui.timeline.UITimeline
- All Implemented Interfaces:
UIContainer,LXLoopTask,Lens.Listener,Iterable<UIObject>
- Direct Known Subclasses:
UIClipEditor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassThe body is the vertically scrolling main pane that sits beneath the header.classThe header lives at the top of the timeline, it scrolls horizontally but not vertically with the content below.classHelper class for a lensed container that scrolls sideways but has a dynamic vertical height.classClassic-style overview used for navigationNested classes/interfaces inherited from class heronarts.glx.ui.UI2dContainer
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout, UI2dContainer.PositionNested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal UITimeline.Bodystatic final intfinal GridMetricsfinal UITimeline.Headerfinal Lensfinal UITimeline.Overviewprotected final UIRulerstatic final intstatic final floatstatic final intFields inherited from class heronarts.glx.ui.UI2dContainer
bottomPadding, childSpacingX, childSpacingY, leftPadding, rightPadding, topPaddingFields 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 final voidAdd lane to the specified section, after removing it from any current section.protected final voidvoiddispose()protected voiddrawBorder(UI ui, VGraphics vg) protected voiddrawCursorIndicators(UI ui, VGraphics vg, UITimeline.LensScrollContainer content) floatfloatvoidonLensChanged(Lens lens, boolean sizeChanged, boolean scrollChanged) Called when the lens positioning is changedprotected voidonReflow()protected voidonResize()Subclasses may override this method, invoked when the component is resizedprotected final voidremoveLane(UILane uiLane) voidsetMainScrollY(float y) 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, onKeyPressed, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPaddingMethods inherited from class heronarts.glx.ui.UI2dComponent
addAfterSibling, addBeforeSibling, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, 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, vgRoundedRectMethods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, addLoopTask, blur, bringToFront, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseScrollMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface heronarts.lx.studio.ui.timeline.Lens.Listener
onClipChanged
-
Field Details
-
SIDE_BAR_WIDTH
public static final int SIDE_BAR_WIDTH- See Also:
-
DEFAULT_LANE_HEIGHT
public static final int DEFAULT_LANE_HEIGHT- See Also:
-
ZOOM_2X_RANGE
public static final float ZOOM_2X_RANGE- See Also:
-
ZOOM_THRESHOLD
public static final int ZOOM_THRESHOLD- See Also:
-
lens
-
gridMetrics
-
overview
-
header
-
body
-
ruler
-
-
Constructor Details
-
UITimeline
-
-
Method Details
-
setMainScrollY
public void setMainScrollY(float y) -
getMainLensHeight
public float getMainLensHeight() -
getMainLensY
public float getMainLensY() -
onLensChanged
Description copied from interface:Lens.ListenerCalled when the lens positioning is changed- Specified by:
onLensChangedin interfaceLens.Listener- Parameters:
lens- LenssizeChanged- True if total width of the lens has changedscrollChanged- True if scroll position of the lens has changed
-
dispose
public void dispose() -
onReflow
protected void onReflow()- Overrides:
onReflowin classUI2dContainer
-
onResize
protected void onResize()Description copied from class:UI2dComponentSubclasses may override this method, invoked when the component is resized- Overrides:
onResizein classUI2dComponent
-
drawBorder
- Overrides:
drawBorderin classUI2dComponent
-
drawCursorIndicators
-
addLane
Add lane to the specified section, after removing it from any current section. Use this when a lane is first created or to move a lane between sections.- Parameters:
uiLane- A new or existing timeline lane.
-
addLane
-
removeLane
-