Package org.primefaces.model.charts.pie
Class PieChartOptions
- java.lang.Object
-
- org.primefaces.model.charts.ChartOptions
-
- org.primefaces.model.charts.pie.PieChartOptions
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DonutChartOptions
public class PieChartOptions extends ChartOptions
Used to set options to Pie chart component.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PieChartOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getCircumference()
Gets the circumferenceNumber
getCutoutPercentage()
Gets the cutoutPercentageNumber
getRotation()
Gets the rotationboolean
isAnimateRotate()
Gets the animateRotateboolean
isAnimateScale()
Gets the animateScalevoid
setAnimateRotate(boolean animateRotate)
Sets the animateRotatevoid
setAnimateScale(boolean animateScale)
Sets the animateScalevoid
setCircumference(Number circumference)
Sets the circumferencevoid
setCutoutPercentage(Number cutoutPercentage)
Sets the cutoutPercentagevoid
setRotation(Number rotation)
Sets the rotation-
Methods inherited from class org.primefaces.model.charts.ChartOptions
getAnimation, getElements, getLegend, getTitle, getTooltip, setAnimation, setElements, setLegend, setTitle, setTooltip
-
-
-
-
Method Detail
-
getCutoutPercentage
public Number getCutoutPercentage()
Gets the cutoutPercentage- Returns:
- cutoutPercentage
-
setCutoutPercentage
public void setCutoutPercentage(Number cutoutPercentage)
Sets the cutoutPercentage- Parameters:
cutoutPercentage
- The percentage of the chart that is cut out of the middle.
-
getRotation
public Number getRotation()
Gets the rotation- Returns:
- rotation
-
setRotation
public void setRotation(Number rotation)
Sets the rotation- Parameters:
rotation
- Starting angle to draw arcs from.
-
getCircumference
public Number getCircumference()
Gets the circumference- Returns:
- circumference
-
setCircumference
public void setCircumference(Number circumference)
Sets the circumference- Parameters:
circumference
- Sweep to allow arcs to cover
-
isAnimateRotate
public boolean isAnimateRotate()
Gets the animateRotate- Returns:
- animateRotate
-
setAnimateRotate
public void setAnimateRotate(boolean animateRotate)
Sets the animateRotate- Parameters:
animateRotate
- If true, the chart will animate in with a rotation animation.
-
isAnimateScale
public boolean isAnimateScale()
Gets the animateScale- Returns:
- animateScale
-
setAnimateScale
public void setAnimateScale(boolean animateScale)
Sets the animateScale- Parameters:
animateScale
- If true, will animate scaling the chart from the center outwards.
-
-