Package tripleplay.ui
Class Scroller.Range
java.lang.Object
tripleplay.ui.Scroller.Range
- Enclosing class:
Scroller
A range along an axis for representing scroll bars. Using the content and view extent,
calculates the relative sizes.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
Tests if the range is currently active.float
Gets the current content offset.float
Gets the size of the content along this range's axis.float
max()
Returns the maximum value that this range can have, in content offset coordinates.float
viewSize()
Gets the size of the view along this scroll bar's axis.
-
Constructor Details
-
Range
public Range()
-
-
Method Details
-
max
public float max()Returns the maximum value that this range can have, in content offset coordinates. -
active
public boolean active()Tests if the range is currently active. A range is inactive if it's turned off explicitly or if the view size is larger than the content size. -
contentSize
public float contentSize()Gets the size of the content along this range's axis. -
viewSize
public float viewSize()Gets the size of the view along this scroll bar's axis. -
contentPos
public float contentPos()Gets the current content offset.
-