Class UIColorPicker

All Implemented Interfaces:
LXLoopTask
Direct Known Subclasses:
UIColorControl, UIDynamicColorPicker

public class UIColorPicker extends UI2dComponent
  • Constructor Details

    • UIColorPicker

      public UIColorPicker(ColorParameter color)
    • UIColorPicker

      public UIColorPicker(float w, float h, ColorParameter color)
    • UIColorPicker

      public UIColorPicker(float x, float y, float w, float h, ColorParameter color)
    • 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

      public UIColorPicker setEnabled(boolean enabled)
    • setDeviceMode

      protected UIColorPicker setDeviceMode(boolean deviceMode)
    • buildColorOverlay

      protected UIColorPicker.UIColorOverlay buildColorOverlay(UI ui)
    • setCorner

      public UIColorPicker setCorner(UIColorPicker.Corner corner)
    • drawBorder

      public void drawBorder(UI ui, VGraphics vg)
      Overrides:
      drawBorder in class UI2dComponent
    • onDraw

      public void onDraw(UI ui, VGraphics vg)
      Description copied from class: UI2dComponent
      Subclasses should override this method to perform their drawing functions.
      Overrides:
      onDraw in class UI2dComponent
      Parameters:
      ui - UI context
      vg - Graphics context
    • hideOverlay

      protected void hideOverlay()
    • onMousePressed

      public void onMousePressed(MouseEvent mouseEvent, float mx, float my)
      Description copied from class: UIEventHandler
      Subclasses override to receive mouse events
      Overrides:
      onMousePressed in class UIEventHandler
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onKeyPressed

      public void onKeyPressed(KeyEvent keyEvent, char keyChar, int keyCode)
      Description copied from class: UIEventHandler
      Subclasses override to receive key events
      Overrides:
      onKeyPressed in class UIEventHandler
      Parameters:
      keyEvent - Key event
      keyChar - Key character
      keyCode - Key code value
    • dispose

      public void dispose()
      Overrides:
      dispose in class UIObject