public class DefaultPointRenderer2D extends AbstractPointRenderer
Drawable
s for a row of data.Constructor and Description |
---|
DefaultPointRenderer2D() |
Modifier and Type | Method and Description |
---|---|
protected void |
drawErrorBars(DrawingContext context,
java.awt.Shape point,
Row row,
int col,
int colErrorTop,
int colErrorBottom,
Axis axis,
AxisRenderer axisRenderer)
Draws error bars.
|
protected void |
drawValueLabel(DrawingContext context,
java.awt.Shape point,
Row row,
int col)
Draws the specified value label for the specified shape.
|
Drawable |
getPoint(PointData data,
java.awt.Shape shape)
Returns the graphical representation to be drawn for the specified data
value.
|
java.awt.Shape |
getPointShape(PointData data)
Returns a
Shape instance that can be used for further
calculations. |
Drawable |
getValue(PointData data,
java.awt.Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
getColor, getErrorColor, getErrorColumnBottom, getErrorColumnTop, getErrorShape, getErrorStroke, getShape, getValueAlignmentX, getValueAlignmentY, getValueColor, getValueColumn, getValueDistance, getValueFont, getValueFormat, getValueLocation, getValueRotation, isErrorVisible, isValueVisible, setColor, setColor, setErrorColor, setErrorColor, setErrorColumnBottom, setErrorColumnTop, setErrorShape, setErrorStroke, setErrorVisible, setShape, setValueAlignmentX, setValueAlignmentY, setValueColor, setValueColor, setValueColumn, setValueDistance, setValueFont, setValueFormat, setValueLocation, setValueRotation, setValueVisible
public Drawable getPoint(PointData data, java.awt.Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.protected void drawValueLabel(DrawingContext context, java.awt.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, java.awt.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 java.awt.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, java.awt.Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.