Class UIIndicator

All Implemented Interfaces:
UITriggerSource, LXLoopTask

public class UIIndicator extends UI2dComponent implements UITriggerSource
  • Field Details

    • timerMode

      public boolean timerMode
    • indicatorTimeMs

      public double indicatorTimeMs
  • Constructor Details

  • Method Details

    • setEnabled

      public UIIndicator setEnabled(boolean enabled)
    • setIndicatorBackgroundColor

      public UIIndicator setIndicatorBackgroundColor(UITheme.Color indicatorBackground)
    • setTriggerable

      public UIIndicator setTriggerable(boolean triggerable)
    • setClickable

      public UIIndicator setClickable(boolean clickable)
    • setIndicatorTime

      public UIIndicator setIndicatorTime(boolean timerMode)
    • setIndicatorTime

      public UIIndicator setIndicatorTime(double indicatorTimeMs)
    • 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
    • onMouseReleased

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

      public BooleanParameter getTriggerSource()
      Specified by:
      getTriggerSource in interface UITriggerSource