public static class PiePlot.PieSliceRenderer extends AbstractPointRenderer
Modifier and Type | Field and Description |
---|---|
static Key |
GAP
Key for specifying a
Number value for the width of gaps
between the segments. |
static Key |
RADIUS_INNER
Key for specifying a
Number value for the inner radius of
the pie relative to the radius set in the plot. |
static Key |
RADIUS_OUTER
Key for specifying a
Number value for the outer radius of
the pie relative to the radius set in the plot. |
COLOR, ERROR_COLOR, ERROR_COLUMN_BOTTOM, ERROR_COLUMN_TOP, ERROR_DISPLAYED, ERROR_SHAPE, ERROR_STROKE, SHAPE, VALUE_ALIGNMENT_X, VALUE_ALIGNMENT_Y, VALUE_COLOR, VALUE_COLUMN, VALUE_DISPLAYED, VALUE_DISTANCE, VALUE_FONT, VALUE_FORMAT, VALUE_LOCATION, VALUE_ROTATION
Constructor and Description |
---|
PiePlot.PieSliceRenderer(PiePlot plot)
Initializes a new instance with a pie plot object.
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawValueLabel(DrawingContext context,
PiePlot.Slice slice,
double radius,
Row row,
int col)
Draws the specified value label for the specified shape.
|
Drawable |
getPoint(PointData data,
Shape shape)
Returns the graphical representation to be drawn for the specified data
value.
|
Shape |
getPointShape(PointData data)
Returns a
Shape instance that can be used for further
calculations. |
Drawable |
getValue(PointData data,
Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
setSetting, settingChanged
addSettingsListener, getSetting, hasSetting, hasSettingDefault, notifySettingChanged, removeSetting, removeSettingDefault, removeSettingsListener, setSetting, setSettingDefault
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
public static final Key RADIUS_OUTER
Number
value for the outer radius of
the pie relative to the radius set in the plot.public static final Key RADIUS_INNER
Number
value for the inner radius of
the pie relative to the radius set in the plot.public PiePlot.PieSliceRenderer(PiePlot plot)
plot
- Pie plot.public Drawable getPoint(PointData data, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.public Shape getPointShape(PointData data)
Shape
instance that can be used for further
calculations.data
- Information on axes, renderers, and values.protected void drawValueLabel(DrawingContext context, PiePlot.Slice slice, double radius, Row row, int col)
context
- Environment used for drawing.slice
- Pie slice to draw.radius
- Radius of pie slice in view units (e.g. pixels).row
- Data row containing the point.col
- Index of the column that will be projected on the axis.public Drawable getValue(PointData data, Shape shape)
PointRenderer
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.Copyright © 2009-2013. All Rights Reserved.