public final class PieChart2DProperties extends ChartTypeProperties implements HTMLTestable
Modifier and Type | Field and Description |
---|---|
private Paint |
borderPaint |
private Stroke |
borderStroke |
static Paint |
DEFAULT_BORDER_PAINT |
static Stroke |
DEFAULT_BORDER_STROKE |
private boolean |
isCurrency |
private PieLabelType |
pieLabelType |
private int |
roundingPowerOfTen |
private boolean |
showGrouping |
private float |
tickLength |
private ChartFont |
valueLabelFont |
private float |
zeroDegreeOffset |
Constructor and Description |
---|
PieChart2DProperties() |
Modifier and Type | Method and Description |
---|---|
Paint |
getBorderPaint() |
Stroke |
getBorderStroke() |
PieLabelType |
getPieLabelType() |
float |
getTickLength() |
ChartFont |
getValueLabelFont() |
int |
getValueLabelRoundingPowerOfTen() |
float |
getZeroDegreeOffset() |
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 |
showValueLabelCurrency() |
boolean |
showValueLabelGrouping() |
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
void |
validate(Chart chart)
Validates the properties.
|
public static final Paint DEFAULT_BORDER_PAINT
public static final Stroke DEFAULT_BORDER_STROKE
private Paint borderPaint
private Stroke borderStroke
private float zeroDegreeOffset
private PieLabelType pieLabelType
private boolean isCurrency
private boolean showGrouping
private int roundingPowerOfTen
private ChartFont valueLabelFont
private float tickLength
public void setZeroDegreeOffset(float zeroDegreeOffset)
zeroDegreeOffset
- public float getZeroDegreeOffset()
public Stroke getBorderStroke()
public void setBorderStroke(Stroke stroke)
stroke
- public Paint getBorderPaint()
public void setBorderPaint(Paint paint)
paint
- public PieLabelType getPieLabelType()
public void setPieLabelType(PieLabelType pieLabelType)
pieLabelType
- public ChartFont getValueLabelFont()
public void setValueLabelFont(ChartFont valueLabelFont)
valueLabelFont
- public void setCurrency(boolean currency)
public void setShowGrouping(boolean showGrouping)
public void setRoundingPowerOfTen(int roundingPowerOfTen)
public void setTickLength(float tickLength)
public float getTickLength()
public boolean showValueLabelCurrency()
public boolean showValueLabelGrouping()
public int getValueLabelRoundingPowerOfTen()
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
htmlGenerator
- public void validate(Chart chart) throws PropertyException
chart
- PropertyException