protected abstract class UIAbstractGlobalModulator.UIModulation extends UI2dContainer implements UIFocus, UIContextActions
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout
UIContextActions.Action
Modifier and Type | Field and Description |
---|---|
protected LXParameterModulation |
modulation |
protected static int |
PADDING |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Modifier and Type | Method and Description |
---|---|
void |
drawFocus(UI ui,
PGraphics pg)
Draws focus on this object.
|
List<UIContextActions.Action> |
getContextActions()
Returns a list of context actions that should be shown for this item
|
protected abstract UIImage |
getIcon() |
protected abstract UIParameterLabel |
getLabel() |
protected int |
getModulationColor(UI ui) |
protected void |
onBlur()
Subclasses override when element loses focus
|
protected void |
onFocus(Event event)
Subclasses override when element is focused
|
void |
onKeyPressed(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
protected abstract void |
remove() |
addChildren, addTopLevelComponent, getChild, getChildren, getContentHeight, getContentTarget, getContentWidth, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, reflow, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setContentHeight, setContentSize, setContentTarget, setContentWidth, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPadding
addToContainer, addToContainer, breakTextToWidth, clipTextToWidth, contains, drawBackground, drawBorder, 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, onDraw, onUIResize, removeLoopTask, toggleVisible
onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseWheel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final int PADDING
protected final LXParameterModulation modulation
protected abstract UIParameterLabel getLabel()
protected abstract UIImage getIcon()
protected abstract void remove()
protected int getModulationColor(UI ui)
public void drawFocus(UI ui, PGraphics pg)
UI2dComponent
drawFocus
in class UI2dComponent
ui
- UIpg
- PGraphicspublic void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandler
onKeyPressed
in class UI2dContainer
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueprotected void onFocus(Event event)
UIObject
protected void onBlur()
UIObject
public List<UIContextActions.Action> getContextActions()
UIContextActions
getContextActions
in interface UIContextActions
LX library by Mark C. Slee. © 2012-2020