Package org.jfree.chart.axis
Class DateTickUnitType
java.lang.Object
org.jfree.chart.axis.DateTickUnitType
- All Implemented Interfaces:
Serializable
An enumeration of the unit types for a
DateTickUnit instance.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intThe corresponding field value in Java's Calendar class.static final DateTickUnitTypeDay.static final DateTickUnitTypeHour.static final DateTickUnitTypeMillisecond.static final DateTickUnitTypeMinute.static final DateTickUnitTypeMonth.private StringThe name.static final DateTickUnitTypeSecond.static final DateTickUnitTypeYear. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDateTickUnitType(String name, int calendarField) Private constructor. -
Method Summary
-
Field Details
-
YEAR
Year. -
MONTH
Month. -
DAY
Day. -
HOUR
Hour. -
MINUTE
Minute. -
SECOND
Second. -
MILLISECOND
Millisecond. -
name
The name. -
calendarField
private int calendarFieldThe corresponding field value in Java's Calendar class.
-
-
Constructor Details
-
DateTickUnitType
Private constructor.- Parameters:
name- the name.calendarField- the calendar field.
-
-
Method Details
-
getCalendarField
public int getCalendarField()Returns the calendar field.- Returns:
- The calendar field.
-
toString
Returns a string representing the object. -
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException- if there is a problem.
-