|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.labels.AbstractXYItemLabelGenerator
org.jfree.chart.labels.StandardXYToolTipGenerator
public class StandardXYToolTipGenerator
A standard tool tip generator for use with an
XYItemRenderer
.
Field Summary | |
---|---|
static String |
DEFAULT_TOOL_TIP_FORMAT
The default tooltip format. |
Constructor Summary | |
---|---|
StandardXYToolTipGenerator()
Creates a tool tip generator using default number formatters. |
|
StandardXYToolTipGenerator(String formatString,
DateFormat xFormat,
DateFormat yFormat)
Creates a tool tip generator using the specified date formatters. |
|
StandardXYToolTipGenerator(String formatString,
DateFormat xFormat,
NumberFormat yFormat)
Creates a tool tip generator using the specified number formatters. |
|
StandardXYToolTipGenerator(String formatString,
NumberFormat xFormat,
DateFormat yFormat)
Creates a tool tip generator using the specified formatters (a number formatter for the x-values and a date formatter for the y-values). |
|
StandardXYToolTipGenerator(String formatString,
NumberFormat xFormat,
NumberFormat yFormat)
Creates a tool tip generator using the specified number formatters. |
Method Summary | |
---|---|
Object |
clone()
Returns an independent copy of the generator. |
boolean |
equals(Object obj)
Tests this object for equality with an arbitrary object. |
String |
generateToolTip(XYDataset dataset,
int series,
int item)
Generates the tool tip text for an item in a dataset. |
static StandardXYToolTipGenerator |
getTimeSeriesInstance()
Returns a tool tip generator that formats the x-values as dates and the y-values as numbers. |
Methods inherited from class org.jfree.chart.labels.AbstractXYItemLabelGenerator |
---|
createItemArray, generateLabelString, getFormatString, getNullYString, getXDateFormat, getXFormat, getYDateFormat, getYFormat, hashCode |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_TOOL_TIP_FORMAT
Constructor Detail |
---|
public StandardXYToolTipGenerator()
public StandardXYToolTipGenerator(String formatString, NumberFormat xFormat, NumberFormat yFormat)
formatString
- the item label format string (null
not
permitted).xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).public StandardXYToolTipGenerator(String formatString, DateFormat xFormat, NumberFormat yFormat)
formatString
- the label format string (null
not
permitted).xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).public StandardXYToolTipGenerator(String formatString, NumberFormat xFormat, DateFormat yFormat)
formatString
- the item label format string (null
not permitted).xFormat
- the format object for the x values (null
permitted).yFormat
- the format object for the y values (null
not permitted).public StandardXYToolTipGenerator(String formatString, DateFormat xFormat, DateFormat yFormat)
formatString
- the label format string (null
not
permitted).xFormat
- the format object for the x values (null
not permitted).yFormat
- the format object for the y values (null
not permitted).Method Detail |
---|
public static StandardXYToolTipGenerator getTimeSeriesInstance()
null
).public String generateToolTip(XYDataset dataset, int series, int item)
generateToolTip
in interface XYToolTipGenerator
dataset
- the dataset (null
not permitted).series
- the series index (zero-based).item
- the item index (zero-based).
null
).public boolean equals(Object obj)
equals
in class AbstractXYItemLabelGenerator
obj
- the other object (null
permitted).
public Object clone() throws CloneNotSupportedException
clone
in interface org.jfree.util.PublicCloneable
clone
in class AbstractXYItemLabelGenerator
CloneNotSupportedException
- if cloning is not supported.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |