java.lang.Object | ||
↳ | org.jfree.chart.labels.AbstractPieItemLabelGenerator | |
↳ | org.jfree.chart.labels.StandardPieToolTipGenerator |
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%)
.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_SECTION_LABEL_FORMAT |
This constant is deprecated.
As of 1.0.7, use DEFAULT_TOOLTIP_FORMAT instead.
|
|||||||||
String | DEFAULT_TOOLTIP_FORMAT | The default tooltip format. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an item label generator using default number formatters.
| |||||||||||
Creates a pie tool tip generator for the specified locale, using the
default format string.
| |||||||||||
Creates a pie tool tip generator for the default locale.
| |||||||||||
Creates a pie tool tip generator for the specified locale.
| |||||||||||
Creates an item label generator using the specified number formatters.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an independent copy of the generator.
| |||||||||||
Generates a tool tip text item for one section in a pie chart.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
This constant is deprecated.
As of 1.0.7, use DEFAULT_TOOLTIP_FORMAT
instead.
The default section label format.
The default tooltip format.
Creates an item label generator using default number formatters.
Creates a pie tool tip generator for the specified locale, using the default format string.
locale | the locale (null not permitted). |
---|
Creates a pie tool tip generator for the default locale.
labelFormat | the label format (null not permitted).
|
---|
Creates a pie tool tip generator for the specified locale.
labelFormat | the label format (null not permitted). |
---|---|
locale | the locale (null not permitted). |
Creates an item label generator using the specified number formatters.
labelFormat | the label format string (null not
permitted). |
---|---|
numberFormat | the format object for the values (null
not permitted). |
percentFormat | the format object for the percentages
(null not permitted).
|
Returns an independent copy of the generator.
CloneNotSupportedException | should not happen. |
---|
Generates a tool tip text item for one section in a pie chart.
dataset | the dataset (null not permitted). |
---|---|
key | the section key (null not permitted). |
null
).