class JFPiePlot<X extends Comparable,S extends Comparable> extends Object implements PiePlot<X,S>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Class and Description |
|---|---|
private static class |
JFPiePlot.LabelType |
private class |
JFPiePlot.MorpheusPieLabels
An implementation of the PieLabels interface for JFreeChart
|
private class |
JFPiePlot.MorpheusPiePlot2D
An extension of JFreeChart PiePlot with Morpheus customizations
|
private class |
JFPiePlot.MorpheusPiePlot3D
An extension of JFreeChart PiePlot with Morpheus customizations
|
private class |
JFPiePlot.MorpheusPieSection
An implementation of the PieSection interface for JFreeChart
|
private class |
JFPiePlot.MorpheusPieSectionLabelGenerator
An implementation of the PieSectionLabelGenerator to label pie sections
|
| Modifier and Type | Field and Description |
|---|---|
private ColorModel |
colorModel |
private JFPiePlot.MorpheusPieLabels |
labels |
private JFPieModel<X,S> |
model |
private org.jfree.chart.plot.PiePlot |
plot |
private Map<X,PieSection> |
sectionMap |
private Color |
sectionOutlineColor |
private Stroke |
sectionOutlineStroke |
| Constructor and Description |
|---|
JFPiePlot(boolean is3d)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PieModel<X,S> |
data()
Returns the data interface for this plot
|
(package private) void |
highlight(Comparable itemKey)
Highlights a section by adjusting the outline for that section
|
PieLabels |
labels()
Returns the label controller for this plot
|
PieSection |
section(X itemKey)
Returns the section controller interface for the item specified
|
(package private) void |
toggle(Comparable itemKey)
Toggles the selection for the item specified
|
private String |
toolTip(org.jfree.data.general.PieDataset dataset,
Comparable key)
Returns the tooltip for the section key
|
(package private) org.jfree.chart.plot.PiePlot |
underlying()
Returns a reference to the underlying JFreeChart Plot object
|
PiePlot<X,S> |
withPieHole(double percent)
Sets the size of the pie hole for donut plots
This feature does not work on 3D plots and is ignored
|
PiePlot<X,S> |
withSectionOutlineColor(Color color)
Sets the outline color for pie sections
|
PiePlot<X,S> |
withStartAngle(double degrees)
Sets the start angle for the first section in degrees
|
private ColorModel colorModel
private org.jfree.chart.plot.PiePlot plot
private Color sectionOutlineColor
private Stroke sectionOutlineStroke
private JFPieModel<X extends Comparable,S extends Comparable> model
private Map<X extends Comparable,PieSection> sectionMap
private JFPiePlot.MorpheusPieLabels labels
JFPiePlot(boolean is3d)
is3d - true for a 3D Pie Plotpublic PieModel<X,S> data()
PiePlotdata in interface PiePlot<X extends Comparable,S extends Comparable>public PieLabels labels()
PiePlotlabels in interface PiePlot<X extends Comparable,S extends Comparable>public PieSection section(X itemKey)
PiePlotsection in interface PiePlot<X extends Comparable,S extends Comparable>itemKey - the key for the section itempublic PiePlot<X,S> withStartAngle(double degrees)
PiePlotwithStartAngle in interface PiePlot<X extends Comparable,S extends Comparable>degrees - the degrees for start anglepublic PiePlot<X,S> withPieHole(double percent)
PiePlotwithPieHole in interface PiePlot<X extends Comparable,S extends Comparable>percent - the percent size for pie holepublic PiePlot<X,S> withSectionOutlineColor(Color color)
PiePlotwithSectionOutlineColor in interface PiePlot<X extends Comparable,S extends Comparable>color - the color instancevoid toggle(Comparable itemKey)
itemKey - the section keyvoid highlight(Comparable itemKey)
itemKey - the item keyprivate String toolTip(org.jfree.data.general.PieDataset dataset, Comparable key)
dataset - the datasetkey - the section keyorg.jfree.chart.plot.PiePlot underlying()
Copyright 2014-2017, Xavier Witdouck