public class UIColorPicker extends UI2dComponent
Modifier and Type | Class and Description |
---|---|
static class |
UIColorPicker.Corner |
protected class |
UIColorPicker.UIColorOverlay |
bottomMargin, height, leftMargin, rightMargin, textAlignHorizontal, textAlignVertical, textOffsetX, textOffsetY, topMargin, width, x, y
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UIColorPicker(ColorParameter color) |
UIColorPicker(float w,
float h,
ColorParameter color) |
UIColorPicker(float x,
float y,
float w,
float h,
ColorParameter color) |
UIColorPicker(float x,
float y,
float w,
float h,
ColorParameter color,
boolean isDynamic) |
Modifier and Type | Method and Description |
---|---|
protected UIColorPicker.UIColorOverlay |
buildColorOverlay(UI ui) |
protected void |
hideOverlay() |
void |
onKeyPressed(KeyEvent keyEvent,
char keyChar,
int keyCode)
Subclasses override to receive key events
|
void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
UIColorPicker |
setCorner(UIColorPicker.Corner corner) |
UIColorPicker |
setEnabled(boolean enabled) |
addToContainer, 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, setY
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onDraw, onFocus, onUIResize, removeLoopTask, toggleVisible
onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased, onMouseWheel
public UIColorPicker(ColorParameter color)
public UIColorPicker(float w, float h, ColorParameter color)
public UIColorPicker(float x, float y, float w, float h, ColorParameter color)
public UIColorPicker(float x, float y, float w, float h, ColorParameter color, boolean isDynamic)
public UIColorPicker setEnabled(boolean enabled)
protected UIColorPicker.UIColorOverlay buildColorOverlay(UI ui)
public UIColorPicker setCorner(UIColorPicker.Corner corner)
protected void hideOverlay()
public void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UIEventHandler
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatepublic void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
UIEventHandler
onKeyPressed
in class UIEventHandler
keyEvent
- Key eventkeyChar
- Key characterkeyCode
- Key code valueLX library by Mark C. Slee. © 2012-2020