JIDE 3.5.15

com.jidesoft.chart.axis
Class AbstractTimeTickCalculator

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

public abstract class AbstractTimeTickCalculator
extends Object
implements TimeTickCalculator

An abstract super class that makes it easier to create a custom time tick calculator.


Field Summary
static String PROPERTY_TIME_ZONE
           
 
Constructor Summary
AbstractTimeTickCalculator()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
           
abstract  Tick[] calculateTicks(Range<Date> r)
          Calculate the ticks for this range of values
 DateFormat getDateFormat()
           
 TimeZone getTimeZone()
           
 void removePropertyChangeListener(PropertyChangeListener listener)
           
 void setDateFormat(DateFormat dateFormat)
           
 void setTimeZone(TimeZone timeZone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_TIME_ZONE

public static final String PROPERTY_TIME_ZONE
See Also:
Constant Field Values
Constructor Detail

AbstractTimeTickCalculator

public AbstractTimeTickCalculator()
Method Detail

getDateFormat

public DateFormat getDateFormat()
Specified by:
getDateFormat in interface TimeTickCalculator

setDateFormat

public void setDateFormat(DateFormat dateFormat)
Specified by:
setDateFormat in interface TimeTickCalculator

getTimeZone

public TimeZone getTimeZone()
Specified by:
getTimeZone in interface TimeTickCalculator

setTimeZone

public void setTimeZone(TimeZone timeZone)
Specified by:
setTimeZone in interface TimeTickCalculator

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface TickCalculator<Date>

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface TickCalculator<Date>

calculateTicks

public abstract 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>
Returns:
an array of tick values

JIDE 3.5.15