Class UIClipButton

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

public class UIClipButton extends UI2dContainer implements UIFocus, UITriggerTarget, UIControlTarget, UIContextActions, UIDuplicate
  • Field Details

  • Constructor Details

    • UIClipButton

      protected UIClipButton(UI ui, UIMixer mixer, LX lx, LXBus bus, int index, float x, float y, float width)
  • 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
    • setCondensed

      protected void setCondensed(boolean condensed)
    • setClip

      protected void setClip(LXClip clip)
    • 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
    • drawPlayTriangle

      public static void drawPlayTriangle(UI ui, VGraphics vg)
    • onDraw

      protected 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
    • 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
    • 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
    • onMouseReleased

      protected 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
    • getTriggerTarget

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

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

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

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

      public void onDuplicate(KeyEvent keyEvent)
      Specified by:
      onDuplicate in interface UIDuplicate
    • 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
      Returns:
      List of context actions
    • dispose

      public void dispose()
      Overrides:
      dispose in class UIObject