protected abstract class UIAbstractGlobalModulator.UIModulation extends UI2dContainer implements UIFocus, UIContextActions
UI2dContainer.ArrowKeyFocus, UI2dContainer.LayoutUIContextActions.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, ychildren, 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, setPaddingaddToContainer, 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, setYaddLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onDraw, onUIResize, removeLoopTask, toggleVisibleonKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseWheelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected 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)
UI2dComponentdrawFocus in class UI2dComponentui - UIpg - PGraphicspublic void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandleronKeyPressed in class UI2dContainerkeyEvent - Key eventkeyChar - Key characterkeyCode - Key code valueprotected void onFocus(Event event)
UIObjectprotected void onBlur()
UIObjectpublic List<UIContextActions.Action> getContextActions()
UIContextActionsgetContextActions in interface UIContextActionsLX library by Mark C. Slee. © 2012-2020