Class UINumberBox

All Implemented Interfaces:
UIContextActions, UIFocus, UIKeyFocus, UIMouseFocus, UITabFocus, LXLoopTask
Direct Known Subclasses:
UIDoubleBox, UIIntegerBox

public abstract class UINumberBox extends UIInputBox
  • Field Details

    • hasShiftMultiplier

      protected boolean hasShiftMultiplier
    • shiftMultiplier

      protected float shiftMultiplier
  • Constructor Details

    • UINumberBox

      protected UINumberBox()
    • UINumberBox

      protected UINumberBox(float x, float y, float w, float h)
  • Method Details

    • setFillStyle

      public UINumberBox setFillStyle(UIInputBox.FillStyle fillStyle)
    • setFill

      public UINumberBox setFill(boolean hasFill)
    • setFillColor

      public UINumberBox setFillColor(int fillColor)
    • setShiftMultiplier

      public UINumberBox setShiftMultiplier(float shiftMultiplier)
      Sets a multiplier by which the amount value changes are modulated when the shift key is down. Either for more precise control or larger jumps, depending on the component.
      Parameters:
      shiftMultiplier - Amount to multiply by
      Returns:
      this
    • setModulationTarget

      protected void setModulationTarget(LXParameter parameter)
    • drawBorder

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

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

      public List<UIContextActions.Action> getContextActions()
      Description copied from interface: UIContextActions
      Returns a list of context actions that should be shown for this item
      Specified by:
      getContextActions in interface UIContextActions
      Overrides:
      getContextActions in class UIParameterComponent
      Returns:
      List of context actions
    • dispose

      public void dispose()
      Overrides:
      dispose in class UIObject