public abstract class AbstractAreaRenderer extends java.lang.Object implements AreaRenderer, java.io.Serializable
Abstract class that renders an area in two-dimensional space.
Functionality includes:
Constructor and Description |
---|
AbstractAreaRenderer()
Initializes a new instance with default settings.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Paint |
getColor()
Returns the paint used to fill the area shape.
|
double |
getGap()
Returns the value for the gap between the area and a data point.
|
boolean |
isGapRounded()
Returns whether the gaps should have rounded corners.
|
protected java.awt.Shape |
punch(java.awt.Shape shape,
java.util.List<DataPoint> dataPoints)
Returns the shape of an area from which the shapes of the specified
points are subtracted.
|
void |
setColor(java.awt.Paint color)
Sets the paint used to fill the area shape.
|
void |
setGap(double gap)
Sets the value for the gap between the area and a data point.
|
void |
setGapRounded(boolean gapRounded)
Sets a value which decides whether the gaps should have rounded corners.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArea, getAreaShape
public AbstractAreaRenderer()
protected java.awt.Shape punch(java.awt.Shape shape, java.util.List<DataPoint> dataPoints)
shape
- Shape of the area.dataPoints
- Data points on the line.public double getGap()
AreaRenderer
getGap
in interface AreaRenderer
public void setGap(double gap)
AreaRenderer
setGap
in interface AreaRenderer
gap
- Gap between area and data point.public boolean isGapRounded()
AreaRenderer
isGapRounded
in interface AreaRenderer
true
, if the gaps should have rounded corners.public void setGapRounded(boolean gapRounded)
AreaRenderer
setGapRounded
in interface AreaRenderer
gapRounded
- true
, if the gaps should have rounded corners.public java.awt.Paint getColor()
AreaRenderer
getColor
in interface AreaRenderer
public void setColor(java.awt.Paint color)
AreaRenderer
setColor
in interface AreaRenderer
color
- Paint for the area shape.