de.erichseifert.gral.plots.lines
Class DefaultLineRenderer2D
- java.lang.Object
-
- de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
-
- de.erichseifert.gral.plots.lines.DefaultLineRenderer2D
-
- All Implemented Interfaces:
- LineRenderer, java.io.Serializable
public class DefaultLineRenderer2D extends AbstractLineRenderer2D
Class that connects two dimensional data points with a straight line.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DefaultLineRenderer2D()Initializes a newDefaultLineRenderer2Dinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DrawablegetLine(java.util.List<DataPoint> points, java.awt.Shape shape)Returns a graphical representation for the line defined bye points.java.awt.ShapegetLineShape(java.util.List<DataPoint> points)Returns the geometric shape for this line.-
Methods inherited from class de.erichseifert.gral.plots.lines.AbstractLineRenderer2D
getColor, getGap, getStroke, isGapRounded, setColor, setGap, setGapRounded, setStroke
-
-
-
-
Constructor Detail
-
DefaultLineRenderer2D
public DefaultLineRenderer2D()
Initializes a newDefaultLineRenderer2Dinstance.
-
-
Method Detail
-
getLine
public Drawable getLine(java.util.List<DataPoint> points, java.awt.Shape shape)
Returns a graphical representation for the line defined bye points.- Parameters:
points- Points used for creating the line.shape- Geometric shape for this line.- Returns:
- Representation of the line.
-
getLineShape
public java.awt.Shape getLineShape(java.util.List<DataPoint> points)
Returns the geometric shape for this line.- Parameters:
points- Points used for creating the line.- Returns:
- Geometric shape for this line.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG