| java.lang.Object org.jfree.chart.labels.AbstractPieItemLabelGenerator org.jfree.chart.labels.StandardPieToolTipGenerator
StandardPieToolTipGenerator | public class StandardPieToolTipGenerator extends AbstractPieItemLabelGenerator implements PieToolTipGenerator,Cloneable,PublicCloneable,Serializable(Code) | | A standard item label generator for plots that use data from a
PieDataset .
For the label format, use {0} where the pie section key should be inserted,
{1} for the absolute section value and {2} for the percent amount of the pie
section, e.g. "{0} = {1} ({2})" will display as
apple = 120 (5%) .
|
Method Summary | |
public Object | clone() Returns an independent copy of the generator. | public String | generateToolTip(PieDataset dataset, Comparable key) Generates a tool tip text item for one section in a pie chart.
Parameters: dataset - the dataset (null not permitted). Parameters: key - the section key (null not permitted). |
DEFAULT_SECTION_LABEL_FORMAT | final public static String DEFAULT_SECTION_LABEL_FORMAT(Code) | | The default section label format.
|
DEFAULT_TOOLTIP_FORMAT | final public static String DEFAULT_TOOLTIP_FORMAT(Code) | | The default tooltip format.
|
StandardPieToolTipGenerator | public StandardPieToolTipGenerator()(Code) | | Creates an item label generator using default number formatters.
|
StandardPieToolTipGenerator | public StandardPieToolTipGenerator(String labelFormat)(Code) | | Creates an item label generator.
Parameters: labelFormat - the label format. |
StandardPieToolTipGenerator | public StandardPieToolTipGenerator(String labelFormat, NumberFormat numberFormat, NumberFormat percentFormat)(Code) | | Creates an item label generator using the specified number formatters.
Parameters: labelFormat - the label format string (null not permitted). Parameters: numberFormat - the format object for the values (null not permitted). Parameters: percentFormat - the format object for the percentages (null not permitted). |
generateToolTip | public String generateToolTip(PieDataset dataset, Comparable key)(Code) | | Generates a tool tip text item for one section in a pie chart.
Parameters: dataset - the dataset (null not permitted). Parameters: key - the section key (null not permitted). The tool tip text (possibly null ). |
|
|