public abstract class UIParameterComponent extends UI2dComponent implements UIContextActions
UIContextActions.Action| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_HEIGHT |
protected boolean |
useCommandEngine |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, ychildren, hasFocus, mousePressContextMenu, visible| Modifier | Constructor and Description |
|---|---|
protected |
UIParameterComponent(float x,
float y,
float w,
float h) |
| Modifier and Type | Method and Description |
|---|---|
List<UIContextActions.Action> |
getContextActions()
Returns a list of context actions that should be shown for this item
|
String |
getOscAddress() |
abstract LXParameter |
getParameter() |
protected void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onMouseReleased(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
setNormalizedCommand(double newValue) |
UIParameterComponent |
setUseCommandEngine(boolean useCommandEngine) |
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, setYaddLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onDraw, onFocus, onUIResize, removeLoopTask, toggleVisibleonKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseWheelpublic static final float DEFAULT_HEIGHT
protected boolean useCommandEngine
protected UIParameterComponent(float x,
float y,
float w,
float h)
public abstract LXParameter getParameter()
public String getOscAddress()
public UIParameterComponent setUseCommandEngine(boolean useCommandEngine)
public List<UIContextActions.Action> getContextActions()
UIContextActionsgetContextActions in interface UIContextActionsprotected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandleronMousePressed in class UIEventHandlermouseEvent - Mouse eventmx - x-coordinatemy - y-coordinateprotected void onMouseReleased(MouseEvent mouseEvent, float mx, float my)
UIEventHandleronMouseReleased in class UIEventHandlermouseEvent - Mouse eventmx - x-coordinatemy - y-coordinateprotected void setNormalizedCommand(double newValue)
LX library by Mark C. Slee. © 2012-2020