public abstract class UIAbstractGlobalModulator extends UIModulator implements UIMouseFocus, UIKeyFocus, UITriggerTarget, UIDuplicate
Modifier and Type | Class and Description |
---|---|
protected class |
UIAbstractGlobalModulator.UICompoundModulation |
protected class |
UIAbstractGlobalModulator.UIModulation |
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout
Modifier and Type | Field and Description |
---|---|
protected static int |
COLOR_WIDTH |
LXComponent |
component |
protected static int |
CONTENT_Y |
protected static int |
LOOP_WIDTH |
static int |
MAP_WIDTH |
protected UI2dContainer |
modulations |
LXModulator |
modulator |
protected static int |
PADDING |
protected UITextBox |
title |
protected static int |
TITLE_X |
protected UI2dComponent |
toggleTarget |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UIAbstractGlobalModulator(UI ui,
LX lx,
LXComponent component,
boolean isModulator,
float x,
float y,
float w,
float h) |
Modifier and Type | Method and Description |
---|---|
UIAbstractGlobalModulator |
_removeModulation(LXParameterModulation modulation) |
UIAbstractGlobalModulator |
addModulation(LXCompoundModulation modulation) |
UIAbstractGlobalModulator |
addTrigger(LXTriggerModulation trigger) |
String |
getIdentifier() |
BooleanParameter |
getTriggerTarget() |
boolean |
isExpanded() |
LXClipboardItem |
onCopy() |
void |
onKeyPressed(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
void |
onPaste(LXClipboardItem item) |
UIAbstractGlobalModulator |
removeModulation(LXCompoundModulation modulation) |
UIAbstractGlobalModulator |
removeTrigger(LXTriggerModulation trigger) |
UIAbstractGlobalModulator |
setExpanded(boolean expanded) |
UIAbstractGlobalModulator |
toggleExpanded() |
getModulationSourceUI, setModulationSourceUI
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, 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
onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseWheel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final int PADDING
protected static final int TITLE_X
protected static final int CONTENT_Y
public static final int MAP_WIDTH
protected static final int LOOP_WIDTH
protected static final int COLOR_WIDTH
public final LXComponent component
public final LXModulator modulator
protected final UI2dComponent toggleTarget
protected final UITextBox title
protected final UI2dContainer modulations
public UIAbstractGlobalModulator(UI ui, LX lx, LXComponent component, boolean isModulator, float x, float y, float w, float h)
public String getIdentifier()
public UIAbstractGlobalModulator setExpanded(boolean expanded)
public UIAbstractGlobalModulator toggleExpanded()
public boolean isExpanded()
public UIAbstractGlobalModulator addModulation(LXCompoundModulation modulation)
public UIAbstractGlobalModulator _removeModulation(LXParameterModulation modulation)
public UIAbstractGlobalModulator removeModulation(LXCompoundModulation modulation)
public UIAbstractGlobalModulator addTrigger(LXTriggerModulation trigger)
public UIAbstractGlobalModulator removeTrigger(LXTriggerModulation trigger)
public BooleanParameter getTriggerTarget()
getTriggerTarget
in interface UITriggerTarget
public void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandler
onKeyPressed
in class UI2dContainer
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valuepublic void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UIEventHandler
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatepublic LXClipboardItem onCopy()
public void onPaste(LXClipboardItem item)
LX library by Mark C. Slee. © 2012-2020