public class DefaultPointRenderer2D extends AbstractPointRenderer
Drawable
s for a row of data.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 |
---|
DefaultPointRenderer2D() |
Modifier and Type | Method and Description |
---|---|
protected void |
drawErrorBars(DrawingContext context,
Shape point,
Row row,
int col,
int colErrorTop,
int colErrorBottom,
Axis axis,
AxisRenderer axisRenderer)
Draws error bars.
|
protected void |
drawValueLabel(DrawingContext context,
Shape point,
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 Drawable getPoint(PointData data, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.protected void drawValueLabel(DrawingContext context, Shape point, Row row, int col)
context
- Environment used for drawing.point
- Point shape used to layout the label.row
- Data row containing the point.col
- Index of the column that will be projected on the axis.protected void drawErrorBars(DrawingContext context, Shape point, Row row, int col, int colErrorTop, int colErrorBottom, Axis axis, AxisRenderer axisRenderer)
context
- Environment used for drawing.point
- Shape of the point.row
- Data row containing the point.col
- Index of the column that will be projected on the axis.colErrorTop
- Index of the column that contains the upper error value.colErrorBottom
- Index of the column that contains the lower error value.axis
- Axis.axisRenderer
- Axis renderer.public Shape getPointShape(PointData data)
Shape
instance that can be used for further
calculations.data
- Information on axes, renderers, and values.public Drawable getValue(PointData data, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.Copyright © 2009-2013. All Rights Reserved.