Class UIPatternLauncher.PatternButton

All Implemented Interfaces:
UIContainer, UIControlTarget, UICopy, UIDuplicate, UIFocus, UIKeyFocus, UIMouseFocus, UIPaste, UITabFocus, UITriggerTarget, LXLoopTask, Iterable<UIObject>
Enclosing class:
UIPatternLauncher

public class UIPatternLauncher.PatternButton extends UI2dContainer implements UIFocus, UITriggerTarget, UIControlTarget, UIDuplicate
  • Field Details

  • Method Details

    • getDescription

      public String getDescription()
      Description copied from class: UIObject
      Objects are encouraged to override this method providing a helpful String displayed to the user explaining the function of this UI component. If no help is available, return null rather than an empty String.
      Overrides:
      getDescription in class UIObject
      Returns:
      Helpful contextual string explaining function of this element
    • onResize

      protected void onResize()
      Description copied from class: UI2dComponent
      Subclasses may override this method, invoked when the component is resized
      Overrides:
      onResize in class UI2dComponent
    • onFocus

      protected void onFocus(Event event)
      Description copied from class: UIObject
      Subclasses override when element is focused
      Overrides:
      onFocus in class UIObject
      Parameters:
      event - Event that caused the focus to occur
    • 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 UI2dContainer
      Parameters:
      ui - UI context
      vg - Graphics context
    • 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 UIEventHandler
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • onKeyPressed

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

      public LXClipboardItem onCopy()
      Specified by:
      onCopy in interface UICopy
    • onDuplicate

      public void onDuplicate(KeyEvent keyEvent)
      Specified by:
      onDuplicate in interface UIDuplicate
    • onPaste

      public void onPaste(LXClipboardItem item)
      Specified by:
      onPaste in interface UIPaste
    • getTriggerTarget

      public BooleanParameter getTriggerTarget()
      Specified by:
      getTriggerTarget in interface UITriggerTarget
    • getControlTarget

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