public class UIClipButton extends UI2dContainer implements UIFocus, UITriggerTarget, UIControlTarget
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout| Modifier and Type | Field and Description |
|---|---|
static int |
HEIGHT |
protected int |
index |
protected static int |
LABEL_X |
protected LX |
lx |
protected UIMixer |
mixer |
static int |
PADDING |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, ychildren, hasFocus, mousePressContextMenu, visible| Modifier | Constructor and Description |
|---|---|
protected |
UIClipButton(UI ui,
UIMixer mixer,
LX lx,
LXBus bus,
int index,
float x,
float y) |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawPlayTriangle(UI ui,
PGraphics pg) |
LXParameter |
getControlTarget() |
BooleanParameter |
getTriggerTarget() |
protected void |
onDraw(UI ui,
PGraphics pg)
Subclasses should override this method to perform their drawing functions.
|
protected void |
onFocus(Event event)
Subclasses override when element is focused
|
protected void |
onKeyPressed(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
protected void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
setClip(LXClip clip) |
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, setPaddingaddToContainer, 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, setYaddLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onUIResize, removeLoopTask, toggleVisibleonKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseWheelclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final int HEIGHT
public static final int PADDING
protected static final int LABEL_X
protected final UIMixer mixer
protected final LX lx
protected final int index
protected void setCondensed(boolean condensed)
protected void setClip(LXClip clip)
protected void onFocus(Event event)
UIObjectprotected void onDraw(UI ui, PGraphics pg)
UIObjectprotected void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandleronKeyPressed in class UI2dContainerkeyEvent - Key eventkeyChar - Key characterkeyCode - Key code valueprotected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandleronMousePressed in class UIEventHandlermouseEvent - Mouse eventmx - x-coordinatemy - y-coordinatepublic BooleanParameter getTriggerTarget()
getTriggerTarget in interface UITriggerTargetpublic LXParameter getControlTarget()
getControlTarget in interface UIControlTargetLX library by Mark C. Slee. © 2012-2020