Package tripleplay.ui

Class Scroller.Range

java.lang.Object
tripleplay.ui.Scroller.Range
Enclosing class:
Scroller

public static class Scroller.Range extends Object
A range along an axis for representing scroll bars. Using the content and view extent, calculates the relative sizes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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
    Gets the size of the view along this scroll bar's axis.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.