de.erichseifert.gral.plots.areas
Class LineAreaRenderer2D
- java.lang.Object
-
- de.erichseifert.gral.plots.areas.AbstractAreaRenderer
-
- de.erichseifert.gral.plots.areas.LineAreaRenderer2D
-
- All Implemented Interfaces:
- AreaRenderer, java.io.Serializable
public class LineAreaRenderer2D extends AbstractAreaRenderer
Default two-dimensional implementation of theAreaRendererinterface that draws lines from data points to the main axis.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LineAreaRenderer2D()Standard constructor that initializes a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DrawablegetArea(java.util.List<DataPoint> points, java.awt.Shape shape)Returns the graphical representation to be drawn for the specified data points.java.awt.ShapegetAreaShape(java.util.List<DataPoint> points)Returns the shape used for rendering the area of a data points.java.awt.StrokegetStroke()Returns the stroke that is used to draw the lines from the data points to the axis.voidsetStroke(java.awt.Stroke stroke)Set the stroke that is used to draw the lines from the data points to the axis.-
Methods inherited from class de.erichseifert.gral.plots.areas.AbstractAreaRenderer
getColor, getGap, isGapRounded, setColor, setGap, setGapRounded
-
-
-
-
Constructor Detail
-
LineAreaRenderer2D
public LineAreaRenderer2D()
Standard constructor that initializes a new instance.
-
-
Method Detail
-
getArea
public Drawable getArea(java.util.List<DataPoint> points, java.awt.Shape shape)
Returns the graphical representation to be drawn for the specified data points.- Parameters:
points- Points that define the shape of the area.shape- Geometric shape of the area.- Returns:
- Representation of the area.
-
getAreaShape
public java.awt.Shape getAreaShape(java.util.List<DataPoint> points)
Returns the shape used for rendering the area of a data points.- Parameters:
points- Data points.- Returns:
- Geometric shape for the area of the specified data points.
-
getStroke
public java.awt.Stroke getStroke()
Returns the stroke that is used to draw the lines from the data points to the axis.- Returns:
- Stroke for line drawing.
-
setStroke
public void setStroke(java.awt.Stroke stroke)
Set the stroke that is used to draw the lines from the data points to the axis.- Parameters:
stroke- Stroke for line drawing.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG