Class DateTickUnitType

java.lang.Object
org.jfree.chart.axis.DateTickUnitType
All Implemented Interfaces:
Serializable

public class DateTickUnitType extends Object implements Serializable
An enumeration of the unit types for a DateTickUnit instance.
See Also:
  • Field Details

  • Constructor Details

    • DateTickUnitType

      private DateTickUnitType(String name, int calendarField)
      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

      public String toString()
      Returns a string representing the object.
      Overrides:
      toString in class Object
      Returns:
      The string.
    • equals

      public boolean equals(Object obj)
      Returns true if this object is equal to the specified object, and false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object.
      Returns:
      A boolean.
    • readResolve

      private Object readResolve() throws ObjectStreamException
      Ensures that serialization returns the unique instances.
      Returns:
      The object.
      Throws:
      ObjectStreamException - if there is a problem.