public class PieExtra extends FontSupport
Modifier and Type | Class and Description |
---|---|
static class |
PieExtra.LABELORIENTAION |
static class |
PieExtra.LABELPOSITION |
static class |
PieExtra.MODE
For bar plots, indicates the display mode for multiplexed data.
|
Constructor and Description |
---|
PieExtra() |
Modifier and Type | Method and Description |
---|---|
boolean[] |
getExplode()
Returns the array of booleans used to "explode" segments.
|
double |
getExplodeExtent()
Returns the size of the offset for exploded segments relative to the
radius of the unit circle.
|
double |
getInnerRadius()
Returns the radius of inner circle for a "wheel" plot where a value of
1.0 fills the available graph space
|
java.text.NumberFormat |
getLabelFormat()
Returns the formatter used to format labels (if custom Strings have not
been set).
|
PieExtra.LABELORIENTAION |
getLabelOrientation()
Returns the orientation of the labels.
|
double |
getLabelRadius()
Returns the radius of the circle where labels will be drawn.
|
java.util.ArrayList<java.lang.String> |
getLabels()
Returns the custom labels for the pie segments as an ArrayList of
Strings.
|
PieExtra.MODE |
getMode()
Sets the mode.
|
double |
getOuterRadius()
Returns the radius of the pie chart where a value of 1.0 fills the
available graph space.
|
boolean |
isLabeled() |
void |
setExplode(boolean[] explode)
Sets the array of booleans used to "explode" segments.
|
void |
setExplodeExtent(double explodeExtent)
Sets the size of the offset for exploded segments relative to the radius
of the unit circle.
|
void |
setInnerRadius(double innerRadius)
Sets the radius of inner circle for a "wheel" plot where a value of 1.0
fills the available graph space
|
void |
setLabeled(boolean showLabels) |
void |
setLabelFormat(java.text.NumberFormat labelFormat)
Sets the formatter used to format labels (if custom Strings have not been
set).
|
void |
setLabelOrientation(PieExtra.LABELORIENTAION labelOrientation)
Sets the orientation of the labels.
|
void |
setLabelOrientation(java.lang.String s)
Sets the orientation of the labels.
|
void |
setLabelRadius(double labelRadius)
Sets the radius of the circle where labels will be drawn.
|
void |
setLabels(java.util.ArrayList<java.lang.String> labels)
Sets the custom labels for the pie segments as an ArrayList of Strings.
|
void |
setLabels(java.lang.String[] labels)
Sets the custom labels for the pie segments as a String[].
|
void |
setMode(PieExtra.MODE mode)
Sets the mode.
|
void |
setMode(java.lang.String s)
Sets the mode.
|
void |
setOuterRadius(double outerRadius)
Sets the radius of the pie chart where a value of 1.0 fills the available
graph space
|
getFont, getFontBackground, getFontBackground, getFontForeground, getFontForeground, setFont, setFontBackground, setFontBackground, setFontBackground, setFontForeground, setFontForeground, setFontForeground
public PieExtra.MODE getMode()
public void setMode(PieExtra.MODE mode)
mode
- the mode to setpublic void setMode(java.lang.String s)
s
- "QUANTITIES", "PERCENTAGES", "DEGREES" or "RADIANS".public java.util.ArrayList<java.lang.String> getLabels()
public void setLabels(java.util.ArrayList<java.lang.String> labels)
labels
- the labels to setpublic void setLabels(java.lang.String[] labels)
labels
- public PieExtra.LABELORIENTAION getLabelOrientation()
public void setLabelOrientation(PieExtra.LABELORIENTAION labelOrientation)
labelOrientation
- the labelOrientation to setpublic void setLabelOrientation(java.lang.String s)
s
- public double getOuterRadius()
public void setOuterRadius(double outerRadius)
outerRadius
- the outerRadius to setpublic double getInnerRadius()
public void setInnerRadius(double innerRadius)
innerRadius
- the innerRadius to setpublic double getLabelRadius()
public void setLabelRadius(double labelRadius)
labelRadius
- the labelRadius to setpublic boolean[] getExplode()
public void setExplode(boolean[] explode)
explode
- the explode to setpublic double getExplodeExtent()
public void setExplodeExtent(double explodeExtent)
explodeExtent
- the explodeExtent to setpublic java.text.NumberFormat getLabelFormat()
public void setLabelFormat(java.text.NumberFormat labelFormat)
labelFormat
- the labelFormat to setpublic boolean isLabeled()
public void setLabeled(boolean showLabels)
labeled
- the labeled to set