org.jfree.chart.labels
Class AbstractCategoryItemLabelGenerator
- java.lang.Object
-
- org.jfree.chart.labels.AbstractCategoryItemLabelGenerator
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, org.jfree.util.PublicCloneable
- Direct Known Subclasses:
- StandardCategoryItemLabelGenerator, StandardCategoryToolTipGenerator
public abstract class AbstractCategoryItemLabelGenerator extends java.lang.Object implements org.jfree.util.PublicCloneable, java.lang.Cloneable, java.io.SerializableA base class that can be used to create a label or tooltip generator that can be assigned to aCategoryItemRenderer.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Objectclone()Returns an independent copy of the generator.booleanequals(java.lang.Object obj)Tests this object for equality with an arbitrary object.java.lang.StringgenerateColumnLabel(CategoryDataset dataset, int column)Generates a label for the specified row.java.lang.StringgenerateRowLabel(CategoryDataset dataset, int row)Generates a label for the specified row.java.text.DateFormatgetDateFormat()Returns the date formatter.java.lang.StringgetLabelFormat()Returns the label format string.java.text.NumberFormatgetNumberFormat()Returns the number formatter.inthashCode()Returns a hash code for this instance.
-
-
-
Method Detail
-
generateRowLabel
public java.lang.String generateRowLabel(CategoryDataset dataset, int row)
Generates a label for the specified row.- Parameters:
dataset- the dataset (nullnot permitted).row- the row index (zero-based).- Returns:
- The label.
-
generateColumnLabel
public java.lang.String generateColumnLabel(CategoryDataset dataset, int column)
Generates a label for the specified row.- Parameters:
dataset- the dataset (nullnot permitted).column- the column index (zero-based).- Returns:
- The label.
-
getLabelFormat
public java.lang.String getLabelFormat()
Returns the label format string.- Returns:
- The label format string (never
null).
-
getNumberFormat
public java.text.NumberFormat getNumberFormat()
Returns the number formatter.- Returns:
- The number formatter (possibly
null).
-
getDateFormat
public java.text.DateFormat getDateFormat()
Returns the date formatter.- Returns:
- The date formatter (possibly
null).
-
equals
public boolean equals(java.lang.Object obj)
Tests this object for equality with an arbitrary object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the other object (nullpermitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hash code.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionReturns an independent copy of the generator.- Specified by:
clonein interfaceorg.jfree.util.PublicCloneable- Overrides:
clonein classjava.lang.Object- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException- should not happen.
-
-
DMelt 3.0 © DataMelt by jWork.ORG