JIDE 3.5.15

com.jidesoft.chart.axis
Class SimpleTimeTickCalculator

java.lang.Object
  extended by com.jidesoft.chart.axis.AbstractTimeTickCalculator
      extended by com.jidesoft.chart.axis.SimpleTimeTickCalculator
All Implemented Interfaces:
TickCalculator<Date>, TimeTickCalculator

public class SimpleTimeTickCalculator
extends AbstractTimeTickCalculator

SimpleTimeTickCalculator provides an easy way of generating ticks on a time axis by specifying the Calendar.FIELD value (and an optional increment) that should separate two adjacent ticks.

Note: This class is in Beta status - let us know if you discover any problems


Field Summary
 
Fields inherited from class com.jidesoft.chart.axis.AbstractTimeTickCalculator
PROPERTY_TIME_ZONE
 
Constructor Summary
SimpleTimeTickCalculator(int field)
           
SimpleTimeTickCalculator(int field, int increment)
           
 
Method Summary
 Tick[] calculateTicks(Range<Date> r)
          Calculate the ticks for this range of values
protected  DateFormat createDateFormat(int field)
           
 
Methods inherited from class com.jidesoft.chart.axis.AbstractTimeTickCalculator
addPropertyChangeListener, getDateFormat, getTimeZone, removePropertyChangeListener, setDateFormat, setTimeZone
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTimeTickCalculator

public SimpleTimeTickCalculator(int field)

SimpleTimeTickCalculator

public SimpleTimeTickCalculator(int field,
                                int increment)
Method Detail

createDateFormat

protected DateFormat createDateFormat(int field)

calculateTicks

public Tick[] calculateTicks(Range<Date> r)
Description copied from interface: TickCalculator
Calculate the ticks for this range of values

Specified by:
calculateTicks in interface TickCalculator<Date>
Specified by:
calculateTicks in class AbstractTimeTickCalculator
Returns:
an array of tick values

JIDE 3.5.15