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
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 TypeMethodDescriptionvoidclose()Destroys the resources created by the bars.abstract Layerlayer()Gets the layer to display the scroll bars.floatsize()Space consumed by active scroll bars.voidupdate(float dt) Updates the scroll bars' time based animation, if any, after the given time delta.voidUpdates the scroll bars' positions.voidUpdates the scroll bars to match the current view and content size.
-
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 tolayer(). -
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:
closein interfaceAutoCloseable- Specified by:
closein interfacereact.Closeable
-
size
public float size()Space consumed by active scroll bars.
-