Package heronarts.lx.studio.ui.device
Class UIDevice
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.lx.studio.ui.device.UIDevice
- All Implemented Interfaces:
UIContainer
,UIKeyFocus
,UIMouseFocus
,LXLoopTask
,Iterable<UIObject>
- Direct Known Subclasses:
UIPresetDevice
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dContainer
UI2dContainer.ArrowKeyFocus, UI2dContainer.Layout, UI2dContainer.Position
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected final LXComponent
protected final UI2dContainer
static final int
protected static final int
protected final LXDeviceComponent
protected static final int
protected static final int
static final int
protected float
protected static final int
protected static final int
protected final UIDeviceModulators
protected static final int
protected static final int
protected static final int
protected static final int
Fields inherited from class heronarts.glx.ui.UI2dComponent
debug, debugName, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y
-
Constructor Summary
ModifierConstructorDescriptionprotected
UIDevice
(LXStudio.UI ui, LXComponent component, float contentWidth) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addContentPicker
(LXStudio.UI ui, LXComponent target) protected void
assertValidContainer
(UIContainer container) Subclasses may override and throw an exception if they don't want to be added to this container typevoid
dispose()
void
drawBorder
(UI ui, VGraphics vg) void
Subclasses should override this method to perform their drawing functions.void
onKeyPressed
(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoid
onMousePressed
(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected void
onReflow()
protected UIDevice
setTitle
(StringParameter title) protected UIDevice
Methods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getContentHeight, getContentTarget, getContentWidth, getLeftPadding, getRightPadding, getScrollHeight, getScrollWidth, getTopPadding, hasDragToReorder, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPadding
Methods inherited from class heronarts.glx.ui.UI2dComponent
addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getMappableParameter, getNextSibling, getParent, getPrevSibling, getWidth, getX, getY, hasBackground, hasBorder, hasFont, hasFontColor, isMappable, onResize, redraw, removeFromContainer, removeFromContainer, setBackground, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBorderColor, setBorderRounding, setBorderRounding, setBorderWeight, setBottomMargin, setContainerIndex, setContainerPosition, setDebug, setDebug, setDescription, setFocusBackground, setFocusBackgroundColor, setFocusBackgroundColor, setFocusColor, setFocusColor, setFocusCorners, setFont, setFontColor, setFontColor, setFontColor, setHeight, setLeftMargin, setMappable, setMargin, setMargin, setMargin, setPosition, setPosition, setPosition, setPosition, setRightMargin, setSize, setTextAlignment, setTextAlignment, setTextOffset, setTopMargin, setVisible, setWidth, setX, setY, vgRoundedRect, vgRoundedRect, vgRoundedRect
Methods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, blur, bringToFront, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, toggleVisible, toString
Methods inherited from class heronarts.glx.ui.UIEventHandler
onKeyReleased, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseScroll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
HEIGHT
public static final int HEIGHT- See Also:
-
PADDING
protected static final int PADDING- See Also:
-
CONTENT_HEIGHT
public static final int CONTENT_HEIGHT- See Also:
-
MARGIN
protected static final int MARGIN- See Also:
-
TITLE_MARGIN
protected static final int TITLE_MARGIN- See Also:
-
TITLE_PADDING
protected static final int TITLE_PADDING- See Also:
-
ENABLED_BUTTON_PADDING
protected static final int ENABLED_BUTTON_PADDING- See Also:
-
CONTENT_PICKER_PADDING
protected static final int CONTENT_PICKER_PADDING- See Also:
-
TRIGGER_BUTTON_PADDING
protected static final int TRIGGER_BUTTON_PADDING- See Also:
-
DEVICE_BAR_WIDTH
protected static final int DEVICE_BAR_WIDTH- See Also:
-
CHEVRON_PADDING
protected static final int CHEVRON_PADDING- See Also:
-
MODULATOR_SIZE
protected static final int MODULATOR_SIZE- See Also:
-
lfoButtonY
protected float lfoButtonY -
modulatorContent
-
-
component
-
device
-
-
Constructor Details
-
UIDevice
-
-
Method Details
-
addContentPicker
-
assertValidContainer
Description copied from class:UI2dComponent
Subclasses may override and throw an exception if they don't want to be added to this container type- Overrides:
assertValidContainer
in classUI2dComponent
- Parameters:
container
- Container
-
onReflow
protected void onReflow()- Overrides:
onReflow
in classUI2dContainer
-
setTitle
-
setTitle
-
drawBorder
- Overrides:
drawBorder
in classUI2dComponent
-
onDraw
Description copied from class:UI2dComponent
Subclasses should override this method to perform their drawing functions.- Overrides:
onDraw
in classUI2dContainer
- Parameters:
ui
- UI contextvg
- Graphics context
-
onKeyPressed
Description copied from class:UIEventHandler
Subclasses override to receive key events- Overrides:
onKeyPressed
in classUI2dContainer
- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
dispose
public void dispose()
-