public interface LineRenderer
Interface that provides functions for rendering a line in two dimensional space.
Functionality includes:
Modifier and Type | Method and Description |
---|---|
java.awt.Paint |
getColor()
Returns the paint to be used to paint the line shape.
|
double |
getGap()
Returns the value for the gap between the line and a point.
|
Drawable |
getLine(java.util.List<DataPoint> points,
java.awt.Shape shape)
Returns a graphical representation for the line defined by
points . |
java.awt.Shape |
getLineShape(java.util.List<DataPoint> points)
Returns the geometric shape for this line.
|
java.awt.Stroke |
getStroke()
Returns the stroke to be used to define the line shape.
|
boolean |
isGapRounded()
Returns whether the gaps should have rounded corners.
|
void |
setColor(java.awt.Paint color)
Sets the paint to be used to paint the line shape.
|
void |
setGap(double gap)
Sets the value for the gap between the line and a point.
|
void |
setGapRounded(boolean gapRounded)
Sets whether the gaps should have rounded corners.
|
void |
setStroke(java.awt.Stroke stroke)
Sets the stroke to be used to define the line shape.
|
java.awt.Shape getLineShape(java.util.List<DataPoint> points)
points
- Points used for creating the line.Drawable getLine(java.util.List<DataPoint> points, java.awt.Shape shape)
points
.points
- Points to be used for creating the line.shape
- Geometric shape for this line.java.awt.Stroke getStroke()
void setStroke(java.awt.Stroke stroke)
stroke
- Stroke used for drawing.double getGap()
void setGap(double gap)
gap
- Gap size between drawn line and connected points in pixels.boolean isGapRounded()
true
if the gap corners should be rounded.void setGapRounded(boolean gapRounded)
gapRounded
- true
if the gap corners should be rounded.java.awt.Paint getColor()
void setColor(java.awt.Paint color)
color
- Paint for line drawing.