public abstract class UIMixerStripControls extends UI2dContainer
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout
Modifier and Type | Field and Description |
---|---|
protected static int |
ACTIVE_BUTTON_Y |
protected LXBus |
bus |
protected boolean |
condensed |
protected static int |
FADER_HEIGHT |
protected static int |
FADER_WIDTH |
protected static int |
HEADER_HEIGHT |
static int |
HEIGHT |
protected LX |
lx |
static int |
PADDING |
protected UI |
ui |
static int |
WIDTH |
static int |
WIDTH_CONDENSED |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Modifier and Type | Method and Description |
---|---|
protected UIMixer |
getMixer() |
protected UIMixerStrip |
getMixerStrip() |
protected abstract UI2dComponent |
getName() |
protected abstract void |
onCondensed(boolean condensed) |
void |
onDraw(UI ui,
PGraphics pg)
Subclasses should override this method to perform their drawing functions.
|
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
|
protected void |
setColors() |
protected void |
setCondensed(boolean condensed) |
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, 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
public static final int PADDING
public static final int WIDTH
public static final int WIDTH_CONDENSED
public static final int HEIGHT
protected static final int FADER_WIDTH
protected static final int FADER_HEIGHT
protected static final int ACTIVE_BUTTON_Y
protected static final int HEADER_HEIGHT
protected final UI ui
protected final LX lx
protected final LXBus bus
protected boolean condensed
protected abstract UI2dComponent getName()
protected UIMixer getMixer()
protected UIMixerStrip getMixerStrip()
protected void setCondensed(boolean condensed)
protected abstract void onCondensed(boolean condensed)
protected void setColors()
public void onDraw(UI ui, PGraphics pg)
UIObject
public void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UIEventHandler
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatepublic void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandler
onKeyPressed
in class UI2dContainer
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueLX library by Mark C. Slee. © 2012-2020