Class UITimeline.Overview

All Implemented Interfaces:
LXLoopTask, Lens.Listener
Enclosing class:
UITimeline

public class UITimeline.Overview extends UI2dComponent implements Lens.Listener
Classic-style overview used for navigation
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public void setEnabled(boolean enabled)
    • 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 UI2dComponent
      Parameters:
      ui - UI context
      vg - Graphics context
    • onClipChanged

      public void onClipChanged(Lens lens, LXClip clip)
      Description copied from interface: Lens.Listener
      Called when the clip the Lens is referencing is changed
      Specified by:
      onClipChanged in interface Lens.Listener
      Parameters:
      lens - Lens
      clip - Clip referenced (may be null)
    • onLensChanged

      public void onLensChanged(Lens lens, boolean sizeChanged, boolean scrollChanged)
      Description copied from interface: Lens.Listener
      Called when the lens positioning is changed
      Specified by:
      onLensChanged in interface Lens.Listener
      Parameters:
      lens - Lens
      sizeChanged - True if total width of the lens has changed
      scrollChanged - True if scroll position of the lens has changed
    • 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