com.jidesoft.chart.axis
Class SimpleTimeTickCalculator
java.lang.Object
com.jidesoft.chart.axis.AbstractTimeTickCalculator
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTimeTickCalculator
public SimpleTimeTickCalculator(int field)
SimpleTimeTickCalculator
public SimpleTimeTickCalculator(int field,
int increment)
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