Package heronarts.glx.ui.component
Class UIParameterLabel
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.component.UILabel
heronarts.glx.ui.component.UIParameterLabel
- All Implemented Interfaces:
LXLoopTask
,LXParameterListener
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.component.UILabel
UILabel.Control, UILabel.Copyable
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder
-
Field Summary
Fields inherited from class heronarts.glx.ui.component.UILabel
DEFAULT_HEIGHT
Fields inherited from class heronarts.glx.ui.UI2dComponent
debug, debugName, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
protected void
Subclasses may override this method to handle other updates needed when the label changesvoid
Invoked when the value of a parameter is changed.setParameter
(LXParameter parameter) setRoot
(LXComponent root) Methods inherited from class heronarts.glx.ui.component.UILabel
getDescription, getLabel, onDraw, setBreakLines, setBreakLines, setLabel, setPadding, setPadding, setPadding
Methods inherited from class heronarts.glx.ui.UI2dComponent
addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawBorder, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getMappableParameter, getNextSibling, getParent, getPrevSibling, 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, blur, bringToFront, focus, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onKeyPressed, onKeyReleased, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseScroll
-
Constructor Details
-
UIParameterLabel
public UIParameterLabel(float x, float y, float w, float h)
-
-
Method Details
-
setPrefix
-
setRoot
-
setParameter
-
onParameterChanged
Description copied from interface:LXParameterListener
Invoked when the value of a parameter is changed.- Specified by:
onParameterChanged
in interfaceLXParameterListener
- Parameters:
p
- The parameter that has changed its value
-
onLabelChanged
protected void onLabelChanged()Subclasses may override this method to handle other updates needed when the label changes -
dispose
public void dispose()
-