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, y
children, 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, setY
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onDraw, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseWheel
public 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()
UIContextActions
getContextActions
in interface UIContextActions
protected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UIEventHandler
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void onMouseReleased(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMouseReleased
in class UIEventHandler
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinateprotected void setNormalizedCommand(double newValue)
LX library by Mark C. Slee. © 2012-2020