Class UIClipLane

All Implemented Interfaces:
UIContainer, UIFocus, UIKeyFocus, UIMouseFocus, UITabFocus, LXLoopTask, Iterable<UIObject>
Direct Known Subclasses:
UIClipEnvelope, UILoopBrace, UIScrubLane

public abstract class UIClipLane extends UIGridLane
Lane that supports having a clip context loaded, with optional selection in bounds-space relative to the clip context.
  • Field Details

    • selectionStart

      protected final Cursor selectionStart
    • selectionEnd

      protected final Cursor selectionEnd
    • hasSelection

      protected boolean hasSelection
  • Constructor Details

    • UIClipLane

      public UIClipLane(UI ui, UITimeline timeline, float h)
  • Method Details

    • setSelectionEnabled

      protected void setSelectionEnabled(boolean enableSelection)
    • setMouseSelectionEnabled

      protected void setMouseSelectionEnabled(boolean enableMouseSelection)
    • setSelection

      protected void setSelection(Cursor start, Cursor end)
    • setSelectionStart

      protected void setSelectionStart(Cursor start)
    • setSelectionEnd

      protected void setSelectionEnd(Cursor end)
    • moveSelection

      protected void moveSelection(Cursor delta, Cursor fromStart, Cursor fromEnd, boolean add)
    • moveSelection

      protected void moveSelection(Cursor delta, boolean add)
    • clearSelection

      public void clearSelection()
      Unselect
    • deleteSelection

      protected void deleteSelection()
      Subclasses can override to delete events within the selection range
    • onBlur

      protected void onBlur()
      Focus lost
      Overrides:
      onBlur in class UIObject
    • drawSelection

      protected void drawSelection(UI ui, VGraphics vg)
      Draw a semi-transparent selection over the alternating grid colors and before the grid lines.
      Overrides:
      drawSelection in class UIGridLane
    • clearMouseSelection

      protected void clearMouseSelection(MouseEvent mouseEvent, float mx, float my)
    • 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
    • onMouseDragged

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

      public void dispose()
      Overrides:
      dispose in class UIObject