public class UIParameterLabel extends UILabel implements LXParameterListener
DEFAULT_HEIGHT
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UIParameterLabel(float x,
float y,
float w,
float h) |
Modifier and Type | Method and Description |
---|---|
protected void |
onLabelChanged()
Subclasses may override this method to handle other updates needed when the label changes
|
void |
onParameterChanged(LXParameter p)
Invoked when the value of a parameter is changed.
|
UIParameterLabel |
setParameter(LXParameter parameter) |
UIParameterLabel |
setPrefix(String prefix) |
getDescription, onDraw, setBreakLines, setBreakLines, setLabel, setPadding, setPadding, setPadding
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, onBlur, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseWheel
public UIParameterLabel setPrefix(String prefix)
public UIParameterLabel setParameter(LXParameter parameter)
public void onParameterChanged(LXParameter p)
LXParameterListener
onParameterChanged
in interface LXParameterListener
p
- The parameter that has changed its valueprotected void onLabelChanged()
LX library by Mark C. Slee. © 2012-2020