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 int
The corresponding field value in Java's Calendar class.static final DateTickUnitType
Day.static final DateTickUnitType
Hour.static final DateTickUnitType
Millisecond.static final DateTickUnitType
Minute.static final DateTickUnitType
Month.private String
The name.static final DateTickUnitType
Second.static final DateTickUnitType
Year. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DateTickUnitType
(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
Returnstrue
if this object is equal to the specified object, andfalse
otherwise. -
readResolve
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
ObjectStreamException
- if there is a problem.
-