Package org.jCharts.properties
Class PieChart2DProperties
java.lang.Object
org.jCharts.properties.ChartTypeProperties
org.jCharts.properties.PieChart2DProperties
- All Implemented Interfaces:
HTMLTestable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
int
float
void
setBorderPaint
(Paint paint) void
setBorderStroke
(Stroke stroke) void
setCurrency
(boolean currency) void
setPieLabelType
(PieLabelType pieLabelType) Sets the type of label to draw on the PieChart.void
setRoundingPowerOfTen
(int roundingPowerOfTen) void
setShowGrouping
(boolean showGrouping) void
setTickLength
(float tickLength) void
setValueLabelFont
(ChartFont valueLabelFont) Sets the ChartFont used to draw the chart value labels.void
setZeroDegreeOffset
(float zeroDegreeOffset) The offset from zero degrees which the first slice of pie is drawn.boolean
boolean
void
toHTML
(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.void
Validates the properties.
-
Field Details
-
DEFAULT_BORDER_PAINT
-
DEFAULT_BORDER_STROKE
-
borderPaint
-
borderStroke
-
zeroDegreeOffset
private float zeroDegreeOffset -
pieLabelType
-
isCurrency
private boolean isCurrency -
showGrouping
private boolean showGrouping -
roundingPowerOfTen
private int roundingPowerOfTen -
valueLabelFont
-
tickLength
private float tickLength
-
-
Constructor Details
-
PieChart2DProperties
public PieChart2DProperties()
-
-
Method Details
-
setZeroDegreeOffset
public void setZeroDegreeOffset(float zeroDegreeOffset) The offset from zero degrees which the first slice of pie is drawn. Charts look better to my eye when they do not start at zero degrees, but beauty is in the eye of the beholder.- Parameters:
zeroDegreeOffset
-
-
getZeroDegreeOffset
public float getZeroDegreeOffset()- Returns:
- double
-
getBorderStroke
- Returns:
- stroke
-
setBorderStroke
- Parameters:
stroke
-
-
getBorderPaint
- Returns:
- Paint
-
setBorderPaint
- Parameters:
paint
-
-
getPieLabelType
- Returns:
-
setPieLabelType
Sets the type of label to draw on the PieChart. The default value is: PieLabelType.NO_LABELS so no labels will be drawn on chart.- Parameters:
pieLabelType
-
-
getValueLabelFont
-
setValueLabelFont
Sets the ChartFont used to draw the chart value labels.- Parameters:
valueLabelFont
-
-
setCurrency
public void setCurrency(boolean currency) -
setShowGrouping
public void setShowGrouping(boolean showGrouping) -
setRoundingPowerOfTen
public void setRoundingPowerOfTen(int roundingPowerOfTen) -
setTickLength
public void setTickLength(float tickLength) -
getTickLength
public float getTickLength() -
showValueLabelCurrency
public boolean showValueLabelCurrency() -
showValueLabelGrouping
public boolean showValueLabelGrouping() -
getValueLabelRoundingPowerOfTen
public int getValueLabelRoundingPowerOfTen() -
toHTML
Enables the testing routines to display the contents of this Object.- Specified by:
toHTML
in interfaceHTMLTestable
- Parameters:
htmlGenerator
-
-
validate
Validates the properties.- Parameters:
chart
-- Throws:
PropertyException
-