de.erichseifert.gral.plots.areas
Interface AreaRenderer
-
- All Known Implementing Classes:
- AbstractAreaRenderer, DefaultAreaRenderer2D, LineAreaRenderer2D
public interface AreaRendererInterface for renderers that display areas in plots.
-
-
Method Summary
All Methods Instance Methods Abstract 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.PaintgetColor()Returns the paint used to fill the area shape.doublegetGap()Returns the value for the gap between the area and a data point.booleanisGapRounded()Returns whether the gaps should have rounded corners.voidsetColor(java.awt.Paint color)Sets the paint used to fill the area shape.voidsetGap(double gap)Sets the value for the gap between the area and a data point.voidsetGapRounded(boolean gapRounded)Sets a value which decides whether the gaps should have rounded corners.
-
-
-
Method Detail
-
getAreaShape
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.
-
getArea
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.
-
getGap
double getGap()
Returns the value for the gap between the area and a data point.- Returns:
- Gap between area and data point.
-
setGap
void setGap(double gap)
Sets the value for the gap between the area and a data point.- Parameters:
gap- Gap between area and data point.
-
isGapRounded
boolean isGapRounded()
Returns whether the gaps should have rounded corners.- Returns:
true, if the gaps should have rounded corners.
-
setGapRounded
void setGapRounded(boolean gapRounded)
Sets a value which decides whether the gaps should have rounded corners.- Parameters:
gapRounded-true, if the gaps should have rounded corners.
-
getColor
java.awt.Paint getColor()
Returns the paint used to fill the area shape.- Returns:
- Paint for the area shape.
-
setColor
void setColor(java.awt.Paint color)
Sets the paint used to fill the area shape.- Parameters:
color- Paint for the area shape.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG