class GPiePlot<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 class |
GPiePlot.GPieLabels
Implementation of the PieLabels interface
|
private class |
GPiePlot.GPieSection
Implementation of PieSection
|
private static class |
GPiePlot.LabelType |
| Modifier and Type | Field and Description |
|---|---|
private ColorModel |
colorModel |
private boolean |
is3d |
private GPiePlot.GPieLabels |
labels |
private GPieModel<X,S> |
model |
private double |
pieHole |
private Map<X,GPiePlot.GPieSection> |
sectionMap |
private Color |
sectionOutlineColor |
private double |
startAngle |
| Constructor and Description |
|---|
GPiePlot(boolean is3d)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(JsObject options)
Enriches the JsObject with options for these axes
|
PieModel<X,S> |
data()
Returns the data interface for this plot
|
PieLabels |
labels()
Returns the label controller for this plot
|
PieSection |
section(X itemKey)
Returns the section controller interface for the item specified
|
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 boolean is3d
private double pieHole
private double startAngle
private GPiePlot.GPieLabels labels
private GPieModel<X extends Comparable,S extends Comparable> model
private ColorModel colorModel
private Color sectionOutlineColor
private Map<X extends Comparable,GPiePlot.GPieSection> sectionMap
GPiePlot(boolean is3d)
is3d - true for 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 instancepublic void accept(JsObject options)
options - the options to enrichCopyright 2014-2017, Xavier Witdouck