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.PositionNested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected static final intprotected final LXComponentprotected final UI2dContainerstatic final intprotected static final intprotected final LXDeviceComponentprotected static final intprotected static final intprotected floatstatic final intprotected static final intprotected static final intprotected final UIDeviceModulatorsprotected static final intprotected static final intprotected static final intprotected static final intFields inherited from class heronarts.glx.ui.UI2dContainer
bottomPadding, childSpacingX, childSpacingY, leftPadding, rightPadding, topPaddingFields inherited from class heronarts.glx.ui.UI2dComponent
borderRoundingBottomLeft, borderRoundingBottomRight, borderRoundingTopLeft, borderRoundingTopRight, debug, debugName, hasBorderRounding, height, marginBottom, marginLeft, marginRight, marginTop, redraw, scissor, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, width, x, y -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUIDevice(LXStudio.UI ui, LXComponent component, float contentWidth) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddContentPicker(LXStudio.UI ui, LXComponent target) protected voidassertValidContainer(UIContainer container) Subclasses may override and throw an exception if they don't want to be added to this container typevoiddispose()voiddrawBorder(UI ui, VGraphics vg) voidSubclasses should override this method to perform their drawing functions.voidonKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoidonMousePressed(MouseEvent mouseEvent, float mx, float my) Subclasses override to receive mouse eventsprotected voidonReflow()protected UIDevicesetTitle(StringParameter title) protected UIDeviceMethods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getChildSpacingX, getChildSpacingY, getContentHeight, getContentTarget, getContentWidth, getLeftPadding, getRightPadding, getScrollHeight, getScrollWidth, getTopPadding, hasDragToReorder, isEmpty, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, setContentSize, setContentTarget, setContentWidth, setDragToReorder, setLayout, setLayout, setMinHeight, setMinWidth, setPadding, setPadding, setPaddingMethods inherited from class heronarts.glx.ui.UI2dComponent
addAfterSibling, addBeforeSibling, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawComponentBackground, drawFocus, drawFocusCorners, drawFocusCorners, drawParentBackground, getAbsoluteX, getAbsoluteY, getBackgroundColor, getBorderColor, getBorderWeight, getBottomMargin, getContainer, getDebugClassHierarchy, getDebugClassHierarchy, getFocusColor, getFocusSize, getFont, getFontColor, getHeight, getLeftMargin, getMappableParameter, getNextSibling, getNextSibling, getParent, getPrevSibling, getPrevSibling, getRightMargin, getTopMargin, 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, vgRoundedRectMethods inherited from class heronarts.glx.ui.UIObject
addListener, addListener, addLoopTask, addLoopTask, blur, bringToFront, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, isVisible, loop, onBlur, onFocus, onUIResize, removeLoopTask, requireUIThread, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onKeyReleased, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseScrollMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
-
BORDER_ROUNDING
protected static final int BORDER_ROUNDING- See Also:
-
extraButtonsY
protected float extraButtonsY -
modulatorContent
-
-
component
-
device
-
-
Constructor Details
-
UIDevice
-
-
Method Details
-
addContentPicker
-
assertValidContainer
Description copied from class:UI2dComponentSubclasses may override and throw an exception if they don't want to be added to this container type- Overrides:
assertValidContainerin classUI2dComponent- Parameters:
container- Container
-
onReflow
protected void onReflow()- Overrides:
onReflowin classUI2dContainer
-
setTitle
-
setTitle
-
drawBorder
- Overrides:
drawBorderin classUI2dComponent
-
onDraw
Description copied from class:UI2dComponentSubclasses should override this method to perform their drawing functions.- Overrides:
onDrawin classUI2dContainer- Parameters:
ui- UI contextvg- Graphics context
-
onKeyPressed
Description copied from class:UIEventHandlerSubclasses override to receive key events- Overrides:
onKeyPressedin classUI2dContainer- Parameters:
keyEvent- Key eventkeyChar- Key characterkeyCode- Key code value
-
onMousePressed
Description copied from class:UIEventHandlerSubclasses override to receive mouse events- Overrides:
onMousePressedin classUIEventHandler- Parameters:
mouseEvent- Mouse eventmx- x-coordinatemy- y-coordinate
-
dispose
public void dispose()
-