Package heronarts.lx.studio.ui.effect
Class UIEffectToggleButton
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.component.UIParameterComponent
heronarts.glx.ui.component.UIButton
heronarts.glx.ui.component.UIButton.Toggle
heronarts.lx.studio.ui.effect.UIEffectToggleButton
- All Implemented Interfaces:
UIContextActions
,UIControlTarget
,UIFocus
,UIKeyFocus
,UIMouseFocus
,UITabFocus
,UITriggerSource
,UITriggerTarget
,LXLoopTask
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.component.UIButton
UIButton.Action, UIButton.EnumFormatter, UIButton.EnumIcon, UIButton.Expander, UIButton.Toggle, UIButton.Tooltip, UIButton.Trigger
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.UIContextActions
UIContextActions.ContextAction
-
Field Summary
Fields inherited from class heronarts.glx.ui.component.UIButton.Toggle
SIZE
Fields inherited from class heronarts.glx.ui.component.UIButton
active, activeColor, enabled, inactiveColor, isMomentary, momentaryPressValid
Fields inherited from class heronarts.glx.ui.component.UIParameterComponent
DEFAULT_HEIGHT, useCommandEngine
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
ConstructorsConstructorDescriptionUIEffectToggleButton
(float x, float y, LXEffect effect) UIEffectToggleButton
(LXEffect effect) -
Method Summary
Modifier and TypeMethodDescriptionvoid
drawBorder
(UI ui, VGraphics vg) Returns a list of context actions that should be shown for this itemvoid
Subclasses should override this method to perform their drawing functions.void
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoid
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsMethods inherited from class heronarts.glx.ui.component.UIButton
dispose, getControlTarget, getDescription, getParameter, getTriggerSource, getTriggerSourceParameter, getTriggerTargetParameter, isActive, onBlur, onClick, onKeyReleased, onMouseDragged, 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, toggle
Methods inherited from class heronarts.glx.ui.component.UIParameterComponent
getOscAddress, setEnableContextActions, setModulationRangeCommand, setNormalizedCommand, setUseCommandEngine
Methods 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, 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, vgRoundedRect
Methods 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, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onMouseMoved, onMouseOut, onMouseOver, onMouseScroll
-
Constructor Details
-
UIEffectToggleButton
-
UIEffectToggleButton
-
-
Method Details
-
onKeyPressed
Description copied from class:UIEventHandler
Subclasses override to receive key events- Overrides:
onKeyPressed
in classUIButton
- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIButton
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
drawBorder
- Overrides:
drawBorder
in classUI2dComponent
-
onDraw
Description copied from class:UI2dComponent
Subclasses should override this method to perform their drawing functions. -
getTriggerTarget
- Specified by:
getTriggerTarget
in interfaceUITriggerTarget
- Overrides:
getTriggerTarget
in classUIButton
-
getContextActions
Description copied from interface:UIContextActions
Returns a list of context actions that should be shown for this item- Specified by:
getContextActions
in interfaceUIContextActions
- Overrides:
getContextActions
in classUIParameterComponent
- Returns:
- List of context actions
-