Class UIColorSlider

All Implemented Interfaces:
UIControlTarget, UIFocus, UIKeyFocus, UIMouseFocus, UITabFocus, LXLoopTask
Direct Known Subclasses:
UIColorSlider.Brightness, UIColorSlider.Hue, UIColorSlider.Saturation

public abstract class UIColorSlider extends UI2dComponent implements UIFocus, UIControlTarget
  • Field Details

  • Constructor Details

  • Method Details

    • getBaseHuef

      protected float getBaseHuef()
    • getBaseSaturationf

      protected float getBaseSaturationf()
    • getBaseBrightnessf

      protected float getBaseBrightnessf()
    • drawValue

      protected void drawValue(UI ui, VGraphics vg)
    • 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
    • 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
    • onMouseDragged

      public void onMouseDragged(MouseEvent MouseEvent, float mx, float my, float dx, float dy)
      Description copied from class: UIEventHandler
      Subclasses override to receive mouse events
      Overrides:
      onMouseDragged in class UIEventHandler
      Parameters:
      MouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
      dx - movement in x
      dy - movement in y
    • getControlTarget

      public LXNormalizedParameter getControlTarget()
      Specified by:
      getControlTarget in interface UIControlTarget