public class UITriggerModulationButton extends UIButton implements UITriggerSource
UIButton.Action, UIButton.Trigger
active, activeColor, enabled, exactToggleTime, inactiveColor, isMomentary, momentaryPressValid
DEFAULT_HEIGHT, useCommandEngine
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UITriggerModulationButton(UI ui,
LX lx,
BooleanParameter trigger,
float x,
float y,
float w,
float h) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Objects are encouraged to override this method providing a helpful String displayed to the user explaining
the function of this UI component.
|
BooleanParameter |
getTriggerSource() |
void |
onToggle(boolean on)
Subclasses may override this to handle changes to the button's state
|
getControlTarget, getParameter, getTriggerTarget, isActive, onBlur, onClick, onDraw, onKeyPressed, onKeyReleased, onMouseDragged, onMousePressed, onMouseReleased, removeParameter, setActive, setActive, setActiveColor, setActiveIcon, setActiveLabel, setEnabled, setIcon, setIconOffset, setIconOffsetX, setIconOffsetY, setInactiveColor, setInactiveIcon, setInactiveLabel, setLabel, setMomentary, setParameter, setParameter, setTriggerable, toggle
getContextActions, getOscAddress, setNormalizedCommand, setUseCommandEngine
addToContainer, addToContainer, breakTextToWidth, clipTextToWidth, contains, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, getBackgroundColor, getBorderColor, getBorderRounding, getBorderWeight, getContainer, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, onResize, redraw, removeFromContainer, setBackground, setBackgroundColor, setBorder, setBorderColor, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyTyped, onMouseClicked, onMouseMoved, onMouseOut, onMouseOver, onMouseWheel
public UITriggerModulationButton(UI ui, LX lx, BooleanParameter trigger, float x, float y, float w, float h)
public void onToggle(boolean on)
UIButton
public BooleanParameter getTriggerSource()
getTriggerSource
in interface UITriggerSource
getTriggerSource
in class UIButton
public String getDescription()
UIObject
getDescription
in class UIButton
LX library by Mark C. Slee. © 2012-2020