Klasse AbstractAreaRenderer
java.lang.Object
de.erichseifert.gral.plots.areas.AbstractAreaRenderer
- Alle implementierten Schnittstellen:
AreaRenderer
- Bekannte direkte Unterklassen:
DefaultAreaRenderer2D, LineAreaRenderer2D
Base class for AreaRenderer implementations. It holds the gap and
color settings and punches a hole around every data point out of the shape
produced by the subclass, so that the marks remain visible on top of the
fill.
A subclass has to implement
AreaRenderer.getAreaShape(java.util.List) and
AreaRenderer.getArea(java.util.List, java.awt.Shape).
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibunggetColor()Returns the paint used to fill the area shape.doublegetGap()Returns the size of the hole that is punched out of the area around each data point, in view units (pixels).booleanReturns whether the gaps should have rounded corners.voidSets the paint used to fill the area shape.voidsetGap(double gap) Sets the size of the hole that is punched out of the area around each data point, in view units (pixels).voidsetGapRounded(boolean gapRounded) Sets a value which decides whether the gaps should have rounded corners.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden AreaRenderer
getArea, getAreaShape
-
Konstruktordetails
-
AbstractAreaRenderer
public AbstractAreaRenderer()Initializes a new instance with default settings.
-
-
Methodendetails
-
getGap
public double getGap()Beschreibung aus Schnittstelle kopiert:AreaRendererReturns the size of the hole that is punched out of the area around each data point, in view units (pixels). A value of 0.0 means no hole.- Angegeben von:
getGapin SchnittstelleAreaRenderer- Gibt zurück:
- Gap between area and data point.
-
setGap
public void setGap(double gap) Beschreibung aus Schnittstelle kopiert:AreaRendererSets the size of the hole that is punched out of the area around each data point, in view units (pixels). A value of 0.0 means no hole.- Angegeben von:
setGapin SchnittstelleAreaRenderer- Parameter:
gap- Gap between area and data point.
-
isGapRounded
public boolean isGapRounded()Beschreibung aus Schnittstelle kopiert:AreaRendererReturns whether the gaps should have rounded corners.- Angegeben von:
isGapRoundedin SchnittstelleAreaRenderer- Gibt zurück:
true, if the gaps should have rounded corners.
-
setGapRounded
public void setGapRounded(boolean gapRounded) Beschreibung aus Schnittstelle kopiert:AreaRendererSets a value which decides whether the gaps should have rounded corners.- Angegeben von:
setGapRoundedin SchnittstelleAreaRenderer- Parameter:
gapRounded-true, if the gaps should have rounded corners.
-
getColor
Beschreibung aus Schnittstelle kopiert:AreaRendererReturns the paint used to fill the area shape.- Angegeben von:
getColorin SchnittstelleAreaRenderer- Gibt zurück:
- Paint for the area shape.
-
setColor
Beschreibung aus Schnittstelle kopiert:AreaRendererSets the paint used to fill the area shape.- Angegeben von:
setColorin SchnittstelleAreaRenderer- Parameter:
color- Paint for the area shape.
-