com.jidesoft.scale
Class NumberPeriod
java.lang.Object
com.jidesoft.scale.NumberPeriod
- All Implemented Interfaces:
- Period, Serializable
public class NumberPeriod
- extends Object
- implements Period, Serializable
A NumberPeriod defines a period to be used in a NumberScaleModel
. It defines four periods that have a step of
1, 2, 4, 8. We created this class mainly for demo purpose. It will not be very useful in a real applicaiton. If you
need a number period, you probably want to define a NumberPeriod that is customized for your application. For
example, it could have steps of 1, 2, 5, 10, 20, 50, 100 etc.
- See Also:
- Serialized Form
ONE
public static final NumberPeriod ONE
TWO
public static final NumberPeriod TWO
FOUR
public static final NumberPeriod FOUR
EIGHT
public static final NumberPeriod EIGHT
NumberPeriod
public NumberPeriod(int step)
getDuration
public int getDuration()
toString
public String toString()
- Overrides:
toString
in class Object