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 TypeMethodDescriptionvoid
close()
Destroys the resources created by the bars.abstract Layer
layer()
Gets the layer to display the scroll bars.float
size()
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.
-
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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfacereact.Closeable
-
size
public float size()Space consumed by active scroll bars.
-