org.jfree.chart.labels.PieSectionLabelGenerator |
![]() |
Interface for a label generator for plots that use data from
a PieDataset
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generates an attributed label for the specified series, or
null if no attributed label is available (in which case,
the string returned by
generateSectionLabel(PieDataset, Comparable) will
provide the fallback). | |||||||||||
Generates a label for a pie section.
|
Generates an attributed label for the specified series, or
null
if no attributed label is available (in which case,
the string returned by
generateSectionLabel(PieDataset, Comparable)
will
provide the fallback). Only certain attributes are recognised by the
code that ultimately displays the labels:
FONT
: will set the font;POSTURE
: a value of
POSTURE_OBLIQUE
will add ITALIC
to
the current font;WEIGHT
: a value of
WEIGHT_BOLD
will add BOLD
to the
current font;FOREGROUND
: this will set the Paint
for the currentSUPERSCRIPT
: the values
SUPERSCRIPT_SUB
and
SUPERSCRIPT_SUPER
are recognised.dataset | the dataset. |
---|---|
key | the key. |
null
).
Generates a label for a pie section.
dataset | the dataset (null not permitted). |
---|---|
key | the section key (null not permitted). |
null
).