Package heronarts.lx.studio.ui.timeline
Class UITimeline.LensScrollContainer
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.glx.ui.UI2dScrollContainer
heronarts.lx.studio.ui.timeline.UITimeline.LensScrollContainer
- All Implemented Interfaces:
UI2dScrollInterface
,UIContainer
,LXLoopTask
,Iterable<UIObject>
- Direct Known Subclasses:
UITimeline.Header
- Enclosing class:
UITimeline
Helper class for a lensed container that scrolls sideways but has a dynamic
vertical height. Side-scroll operations on these containers are automatically
coordinated via the lens.
-
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
Nested classes/interfaces inherited from interface heronarts.glx.ui.UI2dScrollInterface
UI2dScrollInterface.ScrollChange, UI2dScrollInterface.ScrollListener
-
Field Summary
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
ConstructorsModifierConstructorDescriptionprotected
LensScrollContainer
(UI ui, float x, float y, float w, float h) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
onReflow()
protected final void
protected void
setLensWidth
(float lensWidth) protected void
setLensX
(float lensX) Methods inherited from class heronarts.glx.ui.UI2dScrollContainer
addScrollListener, getHorizontalScrollingEnabled, getMaxHeight, getMaxWidth, getScrollHeight, getScrollWidth, getScrollX, getScrollY, getVerticalScrollingEnabled, hasDynamicHeight, hasDynamicWidth, onMouseDragged, onMouseScroll, onResize, onScrollChange, removeScrollListener, setContentSize, setHorizontalScrollingEnabled, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setScrollHeight, setScrollSize, setScrollWidth, setScrollX, setScrollY, setVerticalScrollingEnabled
Methods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getChildSpacingX, getChildSpacingY, getContentHeight, getContentTarget, getContentWidth, getLeftPadding, getRightPadding, getTopPadding, hasDragToReorder, isEmpty, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, onDraw, onKeyPressed, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, 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, 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, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased
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.UI2dScrollInterface
getHeight, getWidth, hasScroll, hasScrollX, hasScrollY
-
Constructor Details
-
LensScrollContainer
-
-
Method Details
-
onScrollChange
- Overrides:
onScrollChange
in classUI2dScrollContainer
-
setLensX
protected void setLensX(float lensX) -
setLensWidth
protected void setLensWidth(float lensWidth) -
onReflow
protected void onReflow()- Overrides:
onReflow
in classUI2dContainer
-