Package heronarts.glx.ui.component
Class UIButton.Expander
- All Implemented Interfaces:
UIContextActions,UIControlTarget,UIFocus,UIKeyFocus,UIMouseFocus,UITabFocus,UITriggerSource,UITriggerTarget,LXLoopTask
- Enclosing class:
UIButton
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class heronarts.glx.ui.component.UIButton
UIButton.Action, UIButton.EnumFormatter, UIButton.EnumIcon, UIButton.Expander, UIButton.Toggle, UIButton.Tooltip, UIButton.TriggerNested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorderNested classes/interfaces inherited from interface heronarts.glx.ui.UIContextActions
UIContextActions.ContextAction -
Field Summary
Fields inherited from class heronarts.glx.ui.component.UIButton
active, activeColor, enabled, inactiveColor, isMomentary, momentaryPressValidFields inherited from class heronarts.glx.ui.component.UIParameterComponent
DEFAULT_HEIGHT, useCommandEngineFields 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
ConstructorsConstructorDescriptionExpander(float x, float y) Expander(float x, float y, BooleanParameter param) Expander(BooleanParameter param) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawBackground(UI ui, VGraphics vg) protected voiddrawBorder(UI ui, VGraphics vg) protected voiddrawBottomLeft(UI ui, VGraphics vg) protected voiddrawBottomRight(UI ui, VGraphics vg) protected voiddrawTopLeft(UI ui, VGraphics vg) protected voiddrawTopRight(UI ui, VGraphics vg) protected booleanSubclasses may override if implementation is not simple parameter-drivenprotected voidSubclasses should override this method to perform their drawing functions.setDirection(UIButton.Expander.Direction direction) Methods inherited from class heronarts.glx.ui.component.UIButton
dispose, getControlTarget, getDescription, getParameter, getTriggerSource, getTriggerSourceParameter, getTriggerTarget, getTriggerTargetParameter, isActive, onBlur, onClick, onKeyPressed, onKeyReleased, onMouseDragged, onMousePressed, onMouseReleased, onToggle, removeParameter, setActive, setActive, setActiveColor, setActiveColor, setActiveFontColor, setActiveFontColor, setActiveIcon, setActiveLabel, setControlSource, setControlTarget, setEnabled, setEnumFormatter, setEnumIcon, setIcon, setIconColor, setIconColor, setIconColor, setIconLabel, setIconOffset, setIconOffsetX, setIconOffsetY, setInactiveColor, setInactiveColor, setInactiveFontColor, setInactiveFontColor, setInactiveIcon, setInactiveLabel, setLabel, setMomentary, setParameter, setParameter, setTriggerable, toggleMethods inherited from class heronarts.glx.ui.component.UIParameterComponent
getContextActions, getOscAddress, setEnableContextActions, setModulationRangeCommand, setNormalizedCommand, setUseCommandEngineMethods 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, 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, vgRoundedRectMethods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, addLoopTask, blur, bringToFront, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onMouseMoved, onMouseOut, onMouseOver, onMouseScroll
-
Constructor Details
-
Expander
-
Expander
-
Expander
public Expander(float x, float y)
-
-
Method Details
-
setDirection
-
drawBackground
- Overrides:
drawBackgroundin classUI2dComponent
-
drawBorder
- Overrides:
drawBorderin classUI2dComponent
-
isExpanded
protected boolean isExpanded()Subclasses may override if implementation is not simple parameter-driven- Returns:
- Whether expander should be expanded
-
onDraw
Description copied from class:UI2dComponentSubclasses should override this method to perform their drawing functions. -
drawBottomLeft
-
drawTopRight
-
drawBottomRight
-
drawTopLeft
-