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 TypeMethodDescriptionfloatintfloatvoidsetBorderPaint(Paint paint) voidsetBorderStroke(Stroke stroke) voidsetCurrency(boolean currency) voidsetPieLabelType(PieLabelType pieLabelType) Sets the type of label to draw on the PieChart.voidsetRoundingPowerOfTen(int roundingPowerOfTen) voidsetShowGrouping(boolean showGrouping) voidsetTickLength(float tickLength) voidsetValueLabelFont(ChartFont valueLabelFont) Sets the ChartFont used to draw the chart value labels.voidsetZeroDegreeOffset(float zeroDegreeOffset) The offset from zero degrees which the first slice of pie is drawn.booleanbooleanvoidtoHTML(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.voidValidates 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:
toHTMLin interfaceHTMLTestable- Parameters:
htmlGenerator-
-
validate
Validates the properties.- Parameters:
chart-- Throws:
PropertyException
-