Class AbstractCategoryItemLabelGenerator

java.lang.Object
org.jfree.chart.labels.AbstractCategoryItemLabelGenerator
All Implemented Interfaces:
Serializable, Cloneable, org.jfree.util.PublicCloneable
Direct Known Subclasses:
StandardCategoryLabelGenerator, StandardCategoryToolTipGenerator

public abstract class AbstractCategoryItemLabelGenerator
extends Object
implements org.jfree.util.PublicCloneable, Cloneable, Serializable
A base class that can be used to create a label or tooltip generator that can be assigned to a CategoryItemRenderer.
See Also:
Serialized Form
  • Method Details

    • getLabelFormat

      public String getLabelFormat()
      Returns the label format string.
      Returns:
      The label format string (never null).
    • getNumberFormat

      public NumberFormat getNumberFormat()
      Returns the number formatter.
      Returns:
      The number formatter (possibly null).
    • getDateFormat

      public DateFormat getDateFormat()
      Returns the date formatter.
      Returns:
      The date formatter (possibly null).
    • equals

      public boolean equals​(Object obj)
      Tests this object for equality with an arbitrary object.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other object (null permitted).
      Returns:
      A boolean.
    • clone

      public Object clone() throws CloneNotSupportedException
      Returns an independent copy of the generator.
      Specified by:
      clone in interface org.jfree.util.PublicCloneable
      Returns:
      A clone.
      Throws:
      CloneNotSupportedException - should not happen.