JIDE 3.5.15

com.jidesoft.scale
Class NumberPeriod

java.lang.Object
  extended by 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

Field Summary
static NumberPeriod EIGHT
           
static NumberPeriod FOUR
           
static NumberPeriod ONE
           
static NumberPeriod TWO
           
 
Constructor Summary
NumberPeriod(int step)
           
 
Method Summary
 int getDuration()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ONE

public static final NumberPeriod ONE

TWO

public static final NumberPeriod TWO

FOUR

public static final NumberPeriod FOUR

EIGHT

public static final NumberPeriod EIGHT
Constructor Detail

NumberPeriod

public NumberPeriod(int step)
Method Detail

getDuration

public int getDuration()

toString

public String toString()
Overrides:
toString in class Object

JIDE 3.5.15