Package heronarts.lx.studio.ui.device
Class UIPatternList
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.UI2dContainer
heronarts.glx.ui.component.UIItemList.ScrollList
heronarts.lx.studio.ui.device.UIPatternList
- All Implemented Interfaces:
UIItemList,UI2dComponent.Scissored,UIContainer,UIContextActions,UICopy,UIDuplicate,UIFocus,UIKeyFocus,UIMouseFocus,UIPaste,UITabFocus,LXLoopTask,Iterable<UIObject>
public class UIPatternList
extends UIItemList.ScrollList
implements UIDuplicate, UI2dComponent.Scissored, UIContextActions
-
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, UI2dComponent.UIDropTargetNested classes/interfaces inherited from interface heronarts.glx.ui.UIContextActions
UIContextActions.Action, UIContextActions.ContextActionNested classes/interfaces inherited from interface heronarts.glx.ui.component.UIItemList
UIItemList.BasicList, UIItemList.Impl, UIItemList.Item, UIItemList.Listener, UIItemList.ScrollList, UIItemList.Section -
Field Summary
Fields 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, yFields inherited from interface heronarts.glx.ui.component.UIItemList
CHECKBOX_SIZE, PADDING, ROW_HEIGHT, ROW_MARGIN, ROW_SPACING, SCROLL_BAR_WIDTH, SECTION_CHEVRON_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Returns a list of context actions that should be shown for this itemonCopy()voidonDelete(List<UIItemList.Item> items) voidonDuplicate(KeyEvent keyEvent) voidonKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode) Subclasses override to receive key eventsvoidonPaste(LXClipboardItem item) protected voidonReflow()protected voidsetControlSurfaceFocusColor(UIColor controlSurfaceFocusColor) setDeleteEnabled(boolean isDeleteEnabled) Methods inherited from class heronarts.glx.ui.component.UIItemList.ScrollList
addItem, addItem, addListener, addSection, clearItems, drawBorder, drawFocus, getFocusedIndex, getFocusedItem, getItems, getRenameBuffer, getScrollHeight, getScrollY, getSelectedItems, hasScroll, isRenaming, moveItem, onBlur, onDraw, onFocus, onKeyReleased, onMouseDragged, onMousePressed, onMouseReleased, onMouseScroll, onResize, removeItem, removeListener, renameAppend, setContentSize, setControlSurfaceFocus, setDeletable, setFilter, setFocusIndex, setFocusItem, setItems, setMomentary, setMultiSelection, setRenamable, setReorderable, setScrollHeight, setScrollY, setShowCheckboxes, setSingleClickActivateMethods inherited from class heronarts.glx.ui.UI2dContainer
addChildren, addTopLevelComponent, getBottomPadding, getChild, getChildren, getChildSpacingX, getChildSpacingY, getContentHeight, getContentTarget, getContentWidth, getLayout, getLeftPadding, getRightPadding, getScrollWidth, getTopPadding, hasDragToReorder, isEmpty, iterator, newHorizontalContainer, newHorizontalContainer, newHorizontalContainer, newVerticalContainer, newVerticalContainer, newVerticalContainer, reflow, removeAllChildren, removeAllChildren, setArrowKeyFocus, setChildMargin, setChildSpacing, setChildSpacing, setChildSpacingX, setChildSpacingY, setContentHeight, 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, assertValidContainer, clipTextToWidth, clipTextToWidth, contains, dbch, drawBackground, drawComponentBackground, 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, 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, onUIResize, removeLoopTask, setConsumeMousePress, setDebugId, setMouseCursor, toggleVisible, toStringMethods inherited from class heronarts.glx.ui.UIEventHandler
onGamepadAxisChanged, onGamepadButtonPressed, onGamepadButtonReleased, onMouseMoved, onMouseOut, onMouseOverMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
UIPatternList
-
-
Method Details
-
onDelete
- Specified by:
onDeletein interfaceUIItemList
-
onScrollChange
protected void onScrollChange()- Overrides:
onScrollChangein classUIItemList.ScrollList
-
setDeleteEnabled
-
onReflow
protected void onReflow()- Overrides:
onReflowin classUI2dContainer
-
setControlSurfaceFocusColor
-
dispose
public void dispose() -
onPaste
-
onCopy
-
onDuplicate
- Specified by:
onDuplicatein interfaceUIDuplicate
-
onKeyPressed
Description copied from class:UIEventHandlerSubclasses override to receive key events- Overrides:
onKeyPressedin classUIItemList.ScrollList- Parameters:
keyEvent- Key eventkeyChar- Key characterkeyCode- Key code value
-
getContextActions
Description copied from interface:UIContextActionsReturns a list of context actions that should be shown for this item- Specified by:
getContextActionsin interfaceUIContextActions- Returns:
- List of context actions
-