Package heronarts.glx.ui
Class UI2dScrollPane
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.glx.ui.UI2dScrollPane
- All Implemented Interfaces:
UIContainer
,LXLoopTask
,Iterable<UIObject>
- Direct Known Subclasses:
UIPerformancePane
A wrapper container to place a scrollable pane with an inset and an optional
scroll bar drawn in the margin between the outer bounds and the inset.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static enum
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
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
final UI2dScrollContainer
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 void
drawBackground
(UI ui, VGraphics vg) protected void
drawBorder
(UI ui, VGraphics vg) float
float
protected void
onResize()
Subclasses may override this method, invoked when the component is resizedsetContentBackgroundColor
(UIColor color) setContentInset
(float inset) setContentInset
(float insetY, float insetX) setContentInset
(float insetTop, float insetRight, float insetBottom, float insetLeft) setContentInsetBottom
(float insetBottom) setContentInsetLeft
(float insetLeft) setContentInsetRight
(float insetTop) setContentInsetTop
(float insetTop) setHorizontalScrollBarPosition
(UI2dScrollPane.HorizontalScrollBarPosition horizontalScrollBarPosition) setPadding
(float padding) setPadding
(float paddingY, float paddingX) setPadding
(float paddingTop, float paddingRight, float paddingBottom, float paddingLeft) setPaddingBottom
(float paddingBottom) setPaddingLeft
(float paddingLeft) setPaddingRight
(float paddingRight) setPaddingTop
(float paddingTop) setScrollX
(float scrollX) setScrollY
(float scrollY) setVerticalScrollBarPosition
(UI2dScrollPane.VerticalScrollBarPosition verticalScrollBarPosition) 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, onReflow, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth
Methods inherited from class heronarts.glx.ui.UI2dComponent
addAfterSibling, addBeforeSibling, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, 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, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, 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
-
DEFAULT_INSET
public static final int DEFAULT_INSET- See Also:
-
DEFAULT_PADDING
public static final int DEFAULT_PADDING- See Also:
-
DEFAULT_BORDER_ROUNDING
public static final int DEFAULT_BORDER_ROUNDING- See Also:
-
scrollContent
-
-
Constructor Details
-
UI2dScrollPane
-
-
Method Details
-
onResize
protected void onResize()Description copied from class:UI2dComponent
Subclasses may override this method, invoked when the component is resized- Overrides:
onResize
in classUI2dComponent
-
setContentBackgroundColor
-
setContentInset
-
setContentInset
-
setContentInset
public UI2dScrollPane setContentInset(float insetTop, float insetRight, float insetBottom, float insetLeft) -
setContentInsetTop
-
setContentInsetRight
-
setContentInsetBottom
-
setContentInsetLeft
-
setPadding
- Overrides:
setPadding
in classUI2dContainer
-
setPadding
- Overrides:
setPadding
in classUI2dContainer
-
setPaddingTop
-
setPaddingRight
-
setPaddingBottom
-
setPaddingLeft
-
setPadding
public UI2dScrollPane setPadding(float paddingTop, float paddingRight, float paddingBottom, float paddingLeft) - Overrides:
setPadding
in classUI2dContainer
-
getScrollX
public float getScrollX() -
getScrollY
public float getScrollY() -
setScrollX
-
setScrollY
-
setVerticalScrollBarPosition
public UI2dScrollPane setVerticalScrollBarPosition(UI2dScrollPane.VerticalScrollBarPosition verticalScrollBarPosition) -
setHorizontalScrollBarPosition
public UI2dScrollPane setHorizontalScrollBarPosition(UI2dScrollPane.HorizontalScrollBarPosition horizontalScrollBarPosition) -
drawBackground
- Overrides:
drawBackground
in classUI2dComponent
-
drawBorder
- Overrides:
drawBorder
in classUI2dComponent
-