|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.jrefinery.chart.DateUnit
Represents a fixed unit of time, used to represent the tick units on a DateAxis.
Constructor Summary | |
DateUnit(int field,
int count)
Deprecated. Constructs a DateUnit. |
Method Summary | |
java.util.Date |
addToDate(java.util.Date base)
Deprecated. Calculates a new date by adding this DateUnit to the base date. |
int |
getCount()
Deprecated. Returns the number of units. |
int |
getField()
Deprecated. Returns the field used to define the DateUnit. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DateUnit(int field, int count)
The DateUnit is specified using one of the following fields from the java.util.Calendar class: YEAR, MONTH, DATE or DAY_OF_MONTH, HOUR_OF_DAY (not HOUR!), MINUTE, SECOND or MILLISECOND.
You also specify the number of units (for example, you might specify 3 months if you have quarterly data, or 7 days, or 1 hour).
field
- the date field.count
- the number of units.Method Detail |
public int getField()
public int getCount()
public java.util.Date addToDate(java.util.Date base)
base
- the base date.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |