kcl.waterloo.graphics.plots2D
Class PieExtra
- java.lang.Object
-
- kcl.waterloo.graphics.plots2D.FontSupport
-
- kcl.waterloo.graphics.plots2D.PieExtra
-
public class PieExtra extends FontSupport
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classPieExtra.LABELORIENTAIONstatic classPieExtra.LABELPOSITIONstatic classPieExtra.MODEFor bar plots, indicates the display mode for multiplexed data.
-
Constructor Summary
Constructors Constructor and Description PieExtra()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description boolean[]getExplode()Returns the array of booleans used to "explode" segments.doublegetExplodeExtent()Returns the size of the offset for exploded segments relative to the radius of the unit circle.doublegetInnerRadius()Returns the radius of inner circle for a "wheel" plot where a value of 1.0 fills the available graph spacejava.text.NumberFormatgetLabelFormat()Returns the formatter used to format labels (if custom Strings have not been set).PieExtra.LABELORIENTAIONgetLabelOrientation()Returns the orientation of the labels.doublegetLabelRadius()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.MODEgetMode()Sets the mode.doublegetOuterRadius()Returns the radius of the pie chart where a value of 1.0 fills the available graph space.booleanisLabeled()voidsetExplode(boolean[] explode)Sets the array of booleans used to "explode" segments.voidsetExplodeExtent(double explodeExtent)Sets the size of the offset for exploded segments relative to the radius of the unit circle.voidsetInnerRadius(double innerRadius)Sets the radius of inner circle for a "wheel" plot where a value of 1.0 fills the available graph spacevoidsetLabeled(boolean showLabels)voidsetLabelFormat(java.text.NumberFormat labelFormat)Sets the formatter used to format labels (if custom Strings have not been set).voidsetLabelOrientation(PieExtra.LABELORIENTAION labelOrientation)Sets the orientation of the labels.voidsetLabelOrientation(java.lang.String s)Sets the orientation of the labels.voidsetLabelRadius(double labelRadius)Sets the radius of the circle where labels will be drawn.voidsetLabels(java.util.ArrayList<java.lang.String> labels)Sets the custom labels for the pie segments as an ArrayList of Strings.voidsetLabels(java.lang.String[] labels)Sets the custom labels for the pie segments as a String[].voidsetMode(PieExtra.MODE mode)Sets the mode.voidsetMode(java.lang.String s)Sets the mode.voidsetOuterRadius(double outerRadius)Sets the radius of the pie chart where a value of 1.0 fills the available graph space-
Methods inherited from class kcl.waterloo.graphics.plots2D.FontSupport
getFont, getFontBackground, getFontBackground, getFontForeground, getFontForeground, setFont, setFontBackground, setFontBackground, setFontBackground, setFontForeground, setFontForeground, setFontForeground
-
-
-
-
Method Detail
-
getMode
public PieExtra.MODE getMode()
Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.- Returns:
- the mode
-
setMode
public void setMode(PieExtra.MODE mode)
Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.- Parameters:
mode- the mode to set
-
setMode
public void setMode(java.lang.String s)
Sets the mode. YData values will be interpreted as QUANTITIES (default), PERCENTAGES, DEGREES or RADIANS.- Parameters:
s- "QUANTITIES", "PERCENTAGES", "DEGREES" or "RADIANS".
-
getLabels
public java.util.ArrayList<java.lang.String> getLabels()
Returns the custom labels for the pie segments as an ArrayList of Strings.- Returns:
- the labels
-
setLabels
public void setLabels(java.util.ArrayList<java.lang.String> labels)
Sets the custom labels for the pie segments as an ArrayList of Strings.- Parameters:
labels- the labels to set
-
setLabels
public void setLabels(java.lang.String[] labels)
Sets the custom labels for the pie segments as a String[].- Parameters:
labels-
-
getLabelOrientation
public PieExtra.LABELORIENTAION getLabelOrientation()
Returns the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.- Returns:
- the labelOrientation
-
setLabelOrientation
public void setLabelOrientation(PieExtra.LABELORIENTAION labelOrientation)
Sets the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.- Parameters:
labelOrientation- the labelOrientation to set
-
setLabelOrientation
public void setLabelOrientation(java.lang.String s)
Sets the orientation of the labels. This value is presently ignored and labels are always drawn horizontally.- Parameters:
s-
-
getOuterRadius
public double getOuterRadius()
Returns the radius of the pie chart where a value of 1.0 fills the available graph space.- Returns:
- the outerRadius
-
setOuterRadius
public void setOuterRadius(double outerRadius)
Sets the radius of the pie chart where a value of 1.0 fills the available graph space- Parameters:
outerRadius- the outerRadius to set
-
getInnerRadius
public double getInnerRadius()
Returns the radius of inner circle for a "wheel" plot where a value of 1.0 fills the available graph space- Returns:
- the innerRadius
-
setInnerRadius
public 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- Parameters:
innerRadius- the innerRadius to set
-
getLabelRadius
public double getLabelRadius()
Returns the radius of the circle where labels will be drawn. a radius of 1.0 fills the available graph space- Returns:
- the labelRadius
-
setLabelRadius
public void setLabelRadius(double labelRadius)
Sets the radius of the circle where labels will be drawn. a radius of 1.0 fills the available graph space- Parameters:
labelRadius- the labelRadius to set
-
getExplode
public boolean[] getExplode()
Returns the array of booleans used to "explode" segments. A value of true offsets the segment from the main circle.- Returns:
- the explode
-
setExplode
public void setExplode(boolean[] explode)
Sets the array of booleans used to "explode" segments. A value of true offsets the segment from the main circle.- Parameters:
explode- the explode to set
-
getExplodeExtent
public double getExplodeExtent()
Returns the size of the offset for exploded segments relative to the radius of the unit circle.- Returns:
- the explodeExtent
-
setExplodeExtent
public void setExplodeExtent(double explodeExtent)
Sets the size of the offset for exploded segments relative to the radius of the unit circle.- Parameters:
explodeExtent- the explodeExtent to set
-
getLabelFormat
public java.text.NumberFormat getLabelFormat()
Returns the formatter used to format labels (if custom Strings have not been set).- Returns:
- the labelFormat
-
setLabelFormat
public void setLabelFormat(java.text.NumberFormat labelFormat)
Sets the formatter used to format labels (if custom Strings have not been set).- Parameters:
labelFormat- the labelFormat to set
-
isLabeled
public boolean isLabeled()
- Returns:
- the labeled
-
setLabeled
public void setLabeled(boolean showLabels)
- Parameters:
labeled- the labeled to set
-
-
DMelt 3.0 © DataMelt by jWork.ORG