Class UIClipEnvelope.UIClipLaneMetadata

All Implemented Interfaces:
UI2dComponent.UIDragReorder, UIContainer, UIFocus, UIKeyFocus, UIMouseFocus, UITabFocus, LXLoopTask, Iterable<UIObject>
Enclosing class:
UIClipEnvelope<T extends LXClipLane<?>>

protected class UIClipEnvelope.UIClipLaneMetadata extends UI2dContainer implements UIFocus, UI2dComponent.UIDragReorder
Row header for LXClipLane
  • Field Details

    • resizing

      protected boolean resizing
  • Constructor Details

    • UIClipLaneMetadata

      public UIClipLaneMetadata(UI ui)
    • UIClipLaneMetadata

      protected UIClipLaneMetadata(UI ui, float labelPadding)
  • Method Details

    • onMouseMoved

      public void onMouseMoved(MouseEvent mouseEvent, float mx, float my)
      Description copied from class: UIEventHandler
      Subclasses override to receive mouse events
      Overrides:
      onMouseMoved in class UIEventHandler
      Parameters:
      mouseEvent - Mouse event
      mx - x-coordinate
      my - y-coordinate
    • 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
    • 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 UI2dContainer
      Parameters:
      keyEvent - Key event
      keyChar - Key character
      keyCode - Key code value
    • isValidDragPosition

      public boolean isValidDragPosition(float mx, float my)
      Description copied from interface: UI2dComponent.UIDragReorder
      Whether this mouse press position is valid to initiate dragging
      Specified by:
      isValidDragPosition in interface UI2dComponent.UIDragReorder
      Parameters:
      mx - Mouse x position
      my - Mouse y position
      Returns:
      Whether to commence dragging from here
    • onDragReorder

      public void onDragReorder(UI2dContainer container, UI2dComponent child, int dragIndex)
      Description copied from interface: UI2dComponent.UIDragReorder
      Callback when an attempt is made to reorder this component in its container
      Specified by:
      onDragReorder in interface UI2dComponent.UIDragReorder
      Parameters:
      container - Parent container
      child - Element being reordered
      dragIndex - Targeted index in parent container