- java.lang.Object
-
- java.lang.Enum<DateTickUnitType>
-
- org.jfree.chart.axis.DateTickUnitType
-
- All Implemented Interfaces:
Serializable,Comparable<DateTickUnitType>
public enum DateTickUnitType extends Enum<DateTickUnitType>
An enumeration of the unit types for aDateTickUnitinstance.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCalendarField()Returns the calendar field.static DateTickUnitTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DateTickUnitType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final DateTickUnitType YEAR
Year.
-
MONTH
public static final DateTickUnitType MONTH
Month.
-
DAY
public static final DateTickUnitType DAY
Day.
-
HOUR
public static final DateTickUnitType HOUR
Hour.
-
MINUTE
public static final DateTickUnitType MINUTE
Minute.
-
SECOND
public static final DateTickUnitType SECOND
Second.
-
MILLISECOND
public static final DateTickUnitType MILLISECOND
Millisecond.
-
-
Method Detail
-
values
public static DateTickUnitType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DateTickUnitType c : DateTickUnitType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DateTickUnitType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getCalendarField
public int getCalendarField()
Returns the calendar field.- Returns:
- The calendar field.
-
-