public interface PointRenderer
An interface providing functions for rendering points in a plot. It defines methods for:
Modifier and Type | Method and Description |
---|---|
ColorMapper |
getColor()
Returns a mapping that is used to fill the point shapes.
|
ColorMapper |
getErrorColor()
Returns the mapping that is used to fill the error indicators.
|
int |
getErrorColumnBottom()
Returns the index of the column that contains the lower error value.
|
int |
getErrorColumnTop()
Returns the index of the column that contains the upper error value.
|
java.awt.Shape |
getErrorShape()
Returns the shape which is used to draw the error indicators.
|
java.awt.Stroke |
getErrorStroke()
Returns the stroke which is used to draw the error indicators.
|
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. |
java.awt.Shape |
getShape()
Returns the shape which is used to draw the point.
|
Drawable |
getValue(PointData data,
java.awt.Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
double |
getValueAlignmentX()
Returns the relative horizontal position of the value.
|
double |
getValueAlignmentY()
Returns the relative vertical position of the value.
|
ColorMapper |
getValueColor()
Returns the mapping that is used to fill the value.
|
int |
getValueColumn()
Returns the index of the column that contains the displayed values.
|
double |
getValueDistance()
Returns the current distance of values to the point.
|
java.awt.Font |
getValueFont()
Returns the font that is used to render the value.
|
java.text.Format |
getValueFormat()
Returns the format that is used to render the displayed data values.
|
Location |
getValueLocation()
Returns the current positioning of the data value relative to the data
point.
|
double |
getValueRotation()
Returns the current rotation angle of the value.
|
boolean |
isErrorVisible()
Returns whether the error value is displayed.
|
boolean |
isValueVisible()
Returns whether the data value of a point is displayed or not.
|
void |
setColor(ColorMapper color)
Sets the mapping that will be used to fill the point shapes.
|
void |
setColor(java.awt.Paint color)
Sets the paint that will be used to fill the point shapes.
|
void |
setErrorColor(ColorMapper color)
Sets the mapping that will be used to fill the error indicators.
|
void |
setErrorColor(java.awt.Paint color)
Sets the paint that will be used to fill the error indicators.
|
void |
setErrorColumnBottom(int columnIndex)
Sets the index of the column that contains the lower error value.
|
void |
setErrorColumnTop(int columnIndex)
Sets the index of the column that contains the upper error value.
|
void |
setErrorShape(java.awt.Shape shape)
Sets the shape which will be used to draw the error indicators.
|
void |
setErrorStroke(java.awt.Stroke stroke)
Sets the stroke which will be used to draw the error indicators.
|
void |
setErrorVisible(boolean errorVisible)
Sets whether the error value will be displayed.
|
void |
setShape(java.awt.Shape shape)
Sets the shape which will be used to draw the point.
|
void |
setValueAlignmentX(double alignmentX)
Sets the relative horizontal position of the value.
|
void |
setValueAlignmentY(double alignmentX)
Sets the relative vertical position of the value.
|
void |
setValueColor(ColorMapper color)
Sets the mapping that will be used to fill the value.
|
void |
setValueColor(java.awt.Paint color)
Sets the paint that will be used to fill the value.
|
void |
setValueColumn(int columnIndex)
Sets the index of the column that contains the displayed values.
|
void |
setValueDistance(double distance)
Sets the distance of values to the point.
|
void |
setValueFont(java.awt.Font font)
Sets the font that will be used to render the value.
|
void |
setValueFormat(java.text.Format format)
Sets the format that will be used to render the displayed data values.
|
void |
setValueLocation(Location location)
Sets the positioning of the data value relative to the data point.
|
void |
setValueRotation(double angle)
Sets the rotation angle of the value.
|
void |
setValueVisible(boolean valueVisible)
Returns whether the data value of a point will be displayed or not.
|
java.awt.Shape getShape()
Shape
instance for the point.void setShape(java.awt.Shape shape)
shape
- Shape
instance for the point.ColorMapper getColor()
ColorMapper
that is used to fill the point shapes.void setColor(ColorMapper color)
color
- ColorMapper
instance to fill the point shapes.void setColor(java.awt.Paint color)
color
- Paint
instance to fill the point shapes.boolean isValueVisible()
true
when the value is displayed, otherwise
false
.void setValueVisible(boolean valueVisible)
valueVisible
- true
if the value should be displayed,
otherwise false
.int getValueColumn()
void setValueColumn(int columnIndex)
columnIndex
- Index of the column that contains the displayed
values.java.text.Format getValueFormat()
Format
instance that is used to render the displayed
data values.void setValueFormat(java.text.Format format)
format
- Format
instance that will be used to render the
displayed data values.Location getValueLocation()
void setValueLocation(Location location)
location
- Positioning of the data value relative to the data point.double getValueAlignmentX()
void setValueAlignmentX(double alignmentX)
alignmentX
- Relative horizontal position of the value.double getValueAlignmentY()
void setValueAlignmentY(double alignmentX)
alignmentX
- Relative vertical position of the value.double getValueRotation()
void setValueRotation(double angle)
angle
- Rotation angle in degrees.double getValueDistance()
void setValueDistance(double distance)
distance
- Distance relative to the font height.ColorMapper getValueColor()
ColorMapper
instance that is used to fill the value.void setValueColor(ColorMapper color)
color
- ColorMapper
instance that will be used to fill
the value.void setValueColor(java.awt.Paint color)
color
- Paint
instance that will be used to fill the
value.java.awt.Font getValueFont()
void setValueFont(java.awt.Font font)
font
- Font that will be used to render the value.boolean isErrorVisible()
true
if the error value is displayed, otherwise
false
.void setErrorVisible(boolean errorVisible)
errorVisible
- true
if the error value should be displayed,
otherwise false
.int getErrorColumnTop()
void setErrorColumnTop(int columnIndex)
columnIndex
- Index of the column that contains the upper error
value.int getErrorColumnBottom()
void setErrorColumnBottom(int columnIndex)
columnIndex
- Index of the column that contains the lower error
value.ColorMapper getErrorColor()
ColorMapper
instance that is used to fill the error
indicators.void setErrorColor(ColorMapper color)
color
- ColorMapper
instance that will be used to fill
the error indicators.void setErrorColor(java.awt.Paint color)
color
- Paint
instance that will be used to fill the
error indicators.java.awt.Shape getErrorShape()
Shape
instance of the error indicators.void setErrorShape(java.awt.Shape shape)
shape
- Shape
instance for the error indicators.java.awt.Stroke getErrorStroke()
void setErrorStroke(java.awt.Stroke stroke)
stroke
- Stroke of the error indicators.java.awt.Shape getPointShape(PointData data)
Shape
instance that can be used for further
calculations.data
- Information on axes, renderers, and values.Drawable getPoint(PointData data, java.awt.Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.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.