public class SmoothLineRenderer2D extends AbstractLineRenderer2D
Class that connects DataPoint
s with a smooth line.
See Interpolation with Bezier Curves for more information.
Constructor and Description |
---|
SmoothLineRenderer2D()
Initializes a new
SmoothLineRenderer2D instance with
default settings. |
Modifier and Type | Method and Description |
---|---|
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.lang.Number |
getSmoothness()
Returns the smoothness of the line.
|
void |
setSmoothness(java.lang.Number smoothness)
Returns the smoothness of the line.
|
getColor, getGap, getStroke, isGapRounded, punch, setColor, setGap, setGapRounded, setStroke
public SmoothLineRenderer2D()
SmoothLineRenderer2D
instance with
default settings.public 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.public java.awt.Shape getLineShape(java.util.List<DataPoint> points)
points
- Points used for creating the line.public java.lang.Number getSmoothness()
public void setSmoothness(java.lang.Number smoothness)
smoothness
- Line smoothness.