Package tripleplay.ui

Class Scroller.Bars

java.lang.Object
tripleplay.ui.Scroller.Bars
All Implemented Interfaces:
AutoCloseable, react.Closeable
Direct Known Subclasses:
Scroller.TouchBars
Enclosing class:
Scroller

public abstract static class Scroller.Bars extends Object implements react.Closeable
Handles the appearance and animation of scroll bars.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface react.Closeable

    react.Closeable.Set, react.Closeable.Util
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Destroys the resources created by the bars.
    abstract Layer
    Gets the layer to display the scroll bars.
    float
    Space consumed by active scroll bars.
    void
    update(float dt)
    Updates the scroll bars' time based animation, if any, after the given time delta.
    void
    Updates the scroll bars' positions.
    void
    Updates the scroll bars to match the current view and content size.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • updateView

      public void updateView()
      Updates the scroll bars to match the current view and content size. This will be called during layout, prior to the call to layer().
    • layer

      public abstract Layer layer()
      Gets the layer to display the scroll bars. It gets added to the same parent as the content's.
    • update

      public void update(float dt)
      Updates the scroll bars' time based animation, if any, after the given time delta.
    • updatePosition

      public void updatePosition()
      Updates the scroll bars' positions. Not necessary for immediate layer bars.
    • close

      public void close()
      Destroys the resources created by the bars.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface react.Closeable
    • size

      public float size()
      Space consumed by active scroll bars.