Class UITimeline

All Implemented Interfaces:
UIContainer, LXLoopTask, Lens.Listener, Iterable<UIObject>
Direct Known Subclasses:
UIClipEditor

public abstract class UITimeline extends UI2dContainer implements Lens.Listener
  • Field Details

  • Constructor Details

    • UITimeline

      public UITimeline(UI ui, float x, float y, float w, float h)
  • Method Details

    • setMainScrollY

      public void setMainScrollY(float y)
    • getMainLensHeight

      public float getMainLensHeight()
    • getMainLensY

      public float getMainLensY()
    • 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
    • dispose

      public void dispose()
      Overrides:
      dispose in class UIObject
    • onReflow

      protected void onReflow()
      Overrides:
      onReflow in class UI2dContainer
    • 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
    • drawBorder

      protected void drawBorder(UI ui, VGraphics vg)
      Overrides:
      drawBorder in class UI2dComponent
    • drawCursorIndicators

      protected void drawCursorIndicators(UI ui, VGraphics vg, UITimeline.LensScrollContainer content)
    • addLane

      protected final void addLane(UILane uiLane)
      Add lane to the specified section, after removing it from any current section. Use this when a lane is first created or to move a lane between sections.
      Parameters:
      uiLane - A new or existing timeline lane.
    • addLane

      protected final void addLane(UILane uiLane, int index)
    • removeLane

      protected final void removeLane(UILane uiLane)