| java.lang.Object org.jfree.chart.labels.AbstractXYItemLabelGenerator
All known Subclasses: org.jfree.chart.labels.StandardXYItemLabelGenerator, org.jfree.chart.labels.BubbleXYItemLabelGenerator, org.jfree.chart.labels.StandardXYToolTipGenerator,
AbstractXYItemLabelGenerator | public class AbstractXYItemLabelGenerator implements Cloneable,Serializable(Code) | | A base class for creating item label generators.
|
Method Summary | |
public Object | clone() Returns an independent copy of the generator. | protected Object[] | createItemArray(XYDataset dataset, int series, int item) Creates the array of items that can be passed to the
MessageFormat class for creating labels.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public boolean | equals(Object obj) Tests this object for equality with an arbitrary object.
Parameters: obj - the other object (null permitted). | public String | generateLabelString(XYDataset dataset, int series, int item) Generates a label string for an item in the dataset.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). | public String | getFormatString() Returns the format string (this controls the overall structure of the
label). | public DateFormat | getXDateFormat() Returns the date formatter for the x-values. | public NumberFormat | getXFormat() Returns the number formatter for the x-values. | public DateFormat | getYDateFormat() Returns the date formatter for the y-values. | public NumberFormat | getYFormat() Returns the number formatter for the y-values. |
AbstractXYItemLabelGenerator | protected AbstractXYItemLabelGenerator()(Code) | | Creates an item label generator using default number formatters.
|
AbstractXYItemLabelGenerator | protected AbstractXYItemLabelGenerator(String formatString, NumberFormat xFormat, NumberFormat yFormat)(Code) | | Creates an item label generator using the specified number formatters.
Parameters: formatString - the item label format string (null not permitted). Parameters: xFormat - the format object for the x values (null not permitted). Parameters: yFormat - the format object for the y values (null not permitted). |
AbstractXYItemLabelGenerator | protected AbstractXYItemLabelGenerator(String formatString, DateFormat xFormat, NumberFormat yFormat)(Code) | | Creates an item label generator using the specified number formatters.
Parameters: formatString - the item label format string (null not permitted). Parameters: xFormat - the format object for the x values (null permitted). Parameters: yFormat - the format object for the y values (null not permitted). |
AbstractXYItemLabelGenerator | protected AbstractXYItemLabelGenerator(String formatString, NumberFormat xFormat, DateFormat yFormat)(Code) | | Creates an item label generator using the specified formatters (a
number formatter for the x-values and a date formatter for the
y-values).
Parameters: formatString - the item label format string (null not permitted). Parameters: xFormat - the format object for the x values (null permitted). Parameters: yFormat - the format object for the y values (null not permitted). since: 1.0.4 |
AbstractXYItemLabelGenerator | protected AbstractXYItemLabelGenerator(String formatString, DateFormat xFormat, DateFormat yFormat)(Code) | | Creates an item label generator using the specified number formatters.
Parameters: formatString - the item label format string (null not permitted). Parameters: xFormat - the format object for the x values (null permitted). Parameters: yFormat - the format object for the y values (null not permitted). |
createItemArray | protected Object[] createItemArray(XYDataset dataset, int series, int item)(Code) | | Creates the array of items that can be passed to the
MessageFormat class for creating labels.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). An array of three items from the dataset formatted asString objects (never null ). |
equals | public boolean equals(Object obj)(Code) | | Tests this object for equality with an arbitrary object.
Parameters: obj - the other object (null permitted). A boolean. |
generateLabelString | public String generateLabelString(XYDataset dataset, int series, int item)(Code) | | Generates a label string for an item in the dataset.
Parameters: dataset - the dataset (null not permitted). Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The label (possibly null ). |
getFormatString | public String getFormatString()(Code) | | Returns the format string (this controls the overall structure of the
label).
The format string (never null ). |
getXDateFormat | public DateFormat getXDateFormat()(Code) | | Returns the date formatter for the x-values.
The date formatter (possibly null ). |
getXFormat | public NumberFormat getXFormat()(Code) | | Returns the number formatter for the x-values.
The number formatter (possibly null ). |
getYDateFormat | public DateFormat getYDateFormat()(Code) | | Returns the date formatter for the y-values.
The date formatter (possibly null ). |
getYFormat | public NumberFormat getYFormat()(Code) | | Returns the number formatter for the y-values.
The number formatter (possibly null ). |
|
|