de.erichseifert.gral.plots.areas
Class AbstractAreaRenderer
- java.lang.Object
-
- de.erichseifert.gral.plots.areas.AbstractAreaRenderer
-
- All Implemented Interfaces:
- AreaRenderer, java.io.Serializable
- Direct Known Subclasses:
- DefaultAreaRenderer2D, LineAreaRenderer2D
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:
- Punching data points out of the area's shape
- Administration of settings
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description AbstractAreaRenderer()Initializes a new instance with default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.erichseifert.gral.plots.areas.AreaRenderer
getArea, getAreaShape
-
-
-
-
Constructor Detail
-
AbstractAreaRenderer
public AbstractAreaRenderer()
Initializes a new instance with default settings.
-
-
Method Detail
-
getGap
public double getGap()
Description copied from interface:AreaRendererReturns the value for the gap between the area and a data point.- Specified by:
getGapin interfaceAreaRenderer- Returns:
- Gap between area and data point.
-
setGap
public void setGap(double gap)
Description copied from interface:AreaRendererSets the value for the gap between the area and a data point.- Specified by:
setGapin interfaceAreaRenderer- Parameters:
gap- Gap between area and data point.
-
isGapRounded
public boolean isGapRounded()
Description copied from interface:AreaRendererReturns whether the gaps should have rounded corners.- Specified by:
isGapRoundedin interfaceAreaRenderer- Returns:
true, if the gaps should have rounded corners.
-
setGapRounded
public void setGapRounded(boolean gapRounded)
Description copied from interface:AreaRendererSets a value which decides whether the gaps should have rounded corners.- Specified by:
setGapRoundedin interfaceAreaRenderer- Parameters:
gapRounded-true, if the gaps should have rounded corners.
-
getColor
public java.awt.Paint getColor()
Description copied from interface:AreaRendererReturns the paint used to fill the area shape.- Specified by:
getColorin interfaceAreaRenderer- Returns:
- Paint for the area shape.
-
setColor
public void setColor(java.awt.Paint color)
Description copied from interface:AreaRendererSets the paint used to fill the area shape.- Specified by:
setColorin interfaceAreaRenderer- Parameters:
color- Paint for the area shape.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG