public interface PointRenderer extends SettingsStorage
An interface providing functions for rendering points in a plot. It defines methods for:
Modifier and Type | Field and Description |
---|---|
static Key |
COLOR
Key for specifying an instance either of
ColorMapper or
Paint that will be used to paint the point shapes. |
static Key |
ERROR_COLOR
Key for specifying the
Paint instance to be used to
paint the error bars. |
static Key |
ERROR_COLUMN_BOTTOM
Key for specifying a
Integer value for the index of
the column that contains the lower error value. |
static Key |
ERROR_COLUMN_TOP
Key for specifying a
Integer value for the index of
the column that contains the upper error value. |
static Key |
ERROR_DISPLAYED
Key for specifying a
Boolean value whether the error
value is displayed. |
static Key |
ERROR_SHAPE
Key for specifying an instance either of
ColorMapper or
Paint that will be used to paint the error bars. |
static Key |
ERROR_STROKE
Key for specifying the
Stroke instance defining the
error bars. |
static Key |
SHAPE
Key for specifying the
Shape instance defining the
form of the point. |
static Key |
VALUE_ALIGNMENT_X
Key for specifying a
Number value that positions
the value horizontally. |
static Key |
VALUE_ALIGNMENT_Y
Key for specifying a
Number value that positions
the value vertically. |
static Key |
VALUE_COLOR
Key for specifying the
Paint instance to be used to
paint the value. |
static Key |
VALUE_COLUMN
Key for specifying a
Integer value for the index of
the column that contains the displayed values. |
static Key |
VALUE_DISPLAYED
Key for specifying a
Boolean value whether the data
value of a point is displayed or not. |
static Key |
VALUE_DISTANCE
Key for specifying a
Number value for the distance
of values to the point. |
static Key |
VALUE_FONT
Key for specifying an instance either of
ColorMapper or
Paint that will be used to paint the value text. |
static Key |
VALUE_FORMAT
Key for specifying the
Format instance to be used to
format the displayed data values. |
static Key |
VALUE_LOCATION
Key for specifying a
Location value for
the positioning of the data value relative to the data point. |
static Key |
VALUE_ROTATION
Key for specifying a
Number value for setting the
rotation of the value in degrees. |
Modifier and Type | Method and Description |
---|---|
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.
|
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
static final Key COLOR
ColorMapper
or
Paint
that will be used to paint the point shapes.static final Key VALUE_DISPLAYED
Boolean
value whether the data
value of a point is displayed or not.static final Key VALUE_COLUMN
Integer
value for the index of
the column that contains the displayed values.static final Key VALUE_FORMAT
Format
instance to be used to
format the displayed data values.static final Key VALUE_LOCATION
Location
value for
the positioning of the data value relative to the data point.static final Key VALUE_ALIGNMENT_X
Number
value that positions
the value horizontally.static final Key VALUE_ALIGNMENT_Y
Number
value that positions
the value vertically.static final Key VALUE_ROTATION
Number
value for setting the
rotation of the value in degrees.static final Key VALUE_DISTANCE
Number
value for the distance
of values to the point. The distance is specified relative to the font
height.static final Key VALUE_COLOR
Paint
instance to be used to
paint the value.static final Key VALUE_FONT
ColorMapper
or
Paint
that will be used to paint the value text.static final Key ERROR_DISPLAYED
Boolean
value whether the error
value is displayed.static final Key ERROR_COLUMN_TOP
Integer
value for the index of
the column that contains the upper error value.static final Key ERROR_COLUMN_BOTTOM
Integer
value for the index of
the column that contains the lower error value.static final Key ERROR_COLOR
Paint
instance to be used to
paint the error bars.static final Key ERROR_SHAPE
ColorMapper
or
Paint
that will be used to paint the error bars.Shape getPointShape(PointData data)
Shape
instance that can be used for further
calculations.data
- Information on axes, renderers, and values.Drawable getPoint(PointData data, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.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.