com.jrefinery.chart
Class DateTickUnit

java.lang.Object
  extended by com.jrefinery.chart.TickUnit
      extended by com.jrefinery.chart.DateTickUnit
All Implemented Interfaces:
java.lang.Comparable

public class DateTickUnit
extends TickUnit


Field Summary
protected  int count
           
static int DAY
           
protected  java.text.DateFormat formatter
           
static int HOUR
           
static int MILLISECOND
           
static int MINUTE
           
static int MONTH
           
static int SECOND
           
protected  int unit
           
static int YEAR
           
 
Fields inherited from class com.jrefinery.chart.TickUnit
size
 
Constructor Summary
DateTickUnit(int unit, int count, java.text.DateFormat formatter)
           
 
Method Summary
 java.lang.String valueToString(double milliseconds)
          Formats a value.
 
Methods inherited from class com.jrefinery.chart.TickUnit
compareTo, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

YEAR

public static final int YEAR
See Also:
Constant Field Values

MONTH

public static final int MONTH
See Also:
Constant Field Values

DAY

public static final int DAY
See Also:
Constant Field Values

HOUR

public static final int HOUR
See Also:
Constant Field Values

MINUTE

public static final int MINUTE
See Also:
Constant Field Values

SECOND

public static final int SECOND
See Also:
Constant Field Values

MILLISECOND

public static final int MILLISECOND
See Also:
Constant Field Values

unit

protected int unit

count

protected int count

formatter

protected java.text.DateFormat formatter
Constructor Detail

DateTickUnit

public DateTickUnit(int unit,
                    int count,
                    java.text.DateFormat formatter)
Method Detail

valueToString

public java.lang.String valueToString(double milliseconds)
Formats a value.

Overrides:
valueToString in class TickUnit


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.