Package heronarts.glx.ui.component
Class UIColorPicker
java.lang.Object
heronarts.glx.ui.UIEventHandler
heronarts.glx.ui.UIObject
heronarts.glx.ui.UI2dComponent
heronarts.glx.ui.component.UIColorPicker
- All Implemented Interfaces:
LXLoopTask
- Direct Known Subclasses:
UIColorControl
,UIDynamicColorPicker
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
protected class
Nested classes/interfaces inherited from class heronarts.glx.ui.UI2dComponent
UI2dComponent.Scissor, UI2dComponent.Scissored, UI2dComponent.UIDragReorder
-
Field Summary
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
ModifierConstructorDescriptionUIColorPicker
(float x, float y, float w, float h, ColorParameter color) protected
UIColorPicker
(float x, float y, float w, float h, ColorParameter color, boolean isDynamic) UIColorPicker
(float x, float y, float w, float h, ColorParameter color, LXNormalizedParameter subparameter) protected
UIColorPicker
(float x, float y, float w, float h, ColorParameter color, LXNormalizedParameter subparameter, boolean isDynamic) UIColorPicker
(float w, float h, ColorParameter color) UIColorPicker
(ColorParameter color) -
Method Summary
Modifier and TypeMethodDescriptionprotected UIColorPicker.UIColorOverlay
buildColorOverlay
(UI ui) void
dispose()
void
drawBorder
(UI ui, VGraphics vg) protected void
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 eventssetCorner
(UIColorPicker.Corner corner) protected UIColorPicker
setDeviceMode
(boolean deviceMode) protected void
setDrawColor
(int drawColor) setEnabled
(boolean enabled) Methods inherited from class heronarts.glx.ui.UI2dComponent
addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, addToContainer, assertValidContainer, 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
-
Constructor Details
-
UIColorPicker
-
UIColorPicker
-
UIColorPicker
-
UIColorPicker
public UIColorPicker(float x, float y, float w, float h, ColorParameter color, LXNormalizedParameter subparameter) -
UIColorPicker
protected UIColorPicker(float x, float y, float w, float h, ColorParameter color, boolean isDynamic) -
UIColorPicker
protected UIColorPicker(float x, float y, float w, float h, ColorParameter color, LXNormalizedParameter subparameter, boolean isDynamic)
-
-
Method Details
-
setDrawColor
protected void setDrawColor(int drawColor) -
setEnabled
-
setDeviceMode
-
buildColorOverlay
-
setCorner
-
drawBorder
- Overrides:
drawBorder
in classUI2dComponent
-
onDraw
Description copied from class:UI2dComponent
Subclasses should override this method to perform their drawing functions.- Overrides:
onDraw
in classUI2dComponent
- Parameters:
ui
- UI contextvg
- Graphics context
-
hideOverlay
protected void hideOverlay() -
onMousePressed
Description copied from class:UIEventHandler
Subclasses override to receive mouse events- Overrides:
onMousePressed
in classUIEventHandler
- Parameters:
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinate
-
onKeyPressed
Description copied from class:UIEventHandler
Subclasses override to receive key events- Overrides:
onKeyPressed
in classUIEventHandler
- Parameters:
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code value
-
dispose
public void dispose()
-