Package tripleplay.ui

Class Scroller.TouchBars

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

public static class Scroller.TouchBars extends Scroller.Bars
Plain rectangle scroll bars that overlay the content area, consume no additional screen space, and fade out after inactivity. Ideal for drag scrolling on a mobile device.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface react.Closeable

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

    Constructors
    Constructor
    Description
    TouchBars(Scroller scroller, int color, float size, float topAlpha, float fadeSpeed)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the layer to display the scroll bars.
    void
    update(float delta)
    Updates the scroll bars' time based animation, if any, after the given time delta.
    void
    Updates the scroll bars' positions.

    Methods inherited from class tripleplay.ui.Scroller.Bars

    close, size, updateView

    Methods inherited from class java.lang.Object

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

    • TouchBars

      public TouchBars(Scroller scroller, int color, float size, float topAlpha, float fadeSpeed)
  • Method Details

    • update

      public void update(float delta)
      Description copied from class: Scroller.Bars
      Updates the scroll bars' time based animation, if any, after the given time delta.
      Overrides:
      update in class Scroller.Bars
    • updatePosition

      public void updatePosition()
      Description copied from class: Scroller.Bars
      Updates the scroll bars' positions. Not necessary for immediate layer bars.
      Overrides:
      updatePosition in class Scroller.Bars
    • layer

      public Layer layer()
      Description copied from class: Scroller.Bars
      Gets the layer to display the scroll bars. It gets added to the same parent as the content's.
      Specified by:
      layer in class Scroller.Bars