public class GJFill extends java.lang.Object implements GJFillableInterface<java.awt.Shape,java.awt.Paint>
Modifier and Type | Class and Description |
---|---|
static class |
GJFill.MODE
Use the arbitrary area (if orientation is ARBITRARY as follows:
|
static class |
GJFill.ORIENTATION
Orientation of the fill.
|
Constructor and Description |
---|
GJFill()
Null constructor.
|
GJFill(GJPlotInterface p)
Constructs an instance and associates it with a plot.
|
GJFill(GJPlotInterface p,
double ref)
Constructs a fully usable instance with default VERTICAL fill.
|
GJFill(GJPlotInterface p,
double ref,
GJFill.ORIENTATION or)
Constructs a usable instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Area |
getArbitraryArea()
Returns the arbitraryArea in graph units.
|
java.awt.Paint |
getAreaPaint()
Returns the Paint instance to be used for filling.
|
java.awt.Shape |
getFillable()
Gets the fillable area for HORIZONTAL & VERTICAL fills
|
float |
getFillAlpha() |
java.awt.AlphaComposite |
getFillComposite() |
GJFill.MODE |
getMode()
Gets the mode used when orientation is ARBITRARY.
|
GJFill.ORIENTATION |
getOrientation() |
GJPlotInterface |
getParentPlot() |
java.awt.geom.Area |
getPixelArea()
Returns the aritraryArea scaled and translated to pixels according to the
current axes limits of the parent graph.
|
double |
getReference() |
java.util.ArrayList<GJPathSegmentInfo> |
getSegments()
Returns an ArrayList
|
void |
setArbitraryArea(java.awt.geom.Area arbitraryArea)
Sets the arbitraryArea in graph units.
|
void |
setAreaPaint(java.awt.Paint paint)
Sets the Paint instance.
|
void |
setFillAlpha(float alpha) |
void |
setFillComposite(java.awt.AlphaComposite composite) |
void |
setMode(GJFill.MODE mode)
Sets the mode used when orientation is ARBITRARY.
|
void |
setOrientation(GJFill.ORIENTATION orientation) |
void |
setParentPlot(GJPlotInterface parentPlot) |
void |
setReference(double reference) |
void |
setSegments(java.util.ArrayList<GJPathSegmentInfo> arr)
Reconstructs an arbitraryArea on XML de-serialization using an
ArrayList
|
public GJFill()
public GJFill(GJPlotInterface p)
p
- a GJPlotInterfacepublic GJFill(GJPlotInterface p, double ref)
p
- the associated plotref
- the reference level for HORIZONTAL & VERTICAL fillspublic GJFill(GJPlotInterface p, double ref, GJFill.ORIENTATION or)
p
- the associated ploatref
- the reference level for HORIZONTAL & VERTICAL fillsor
- the orientation: HORIZONTAL, VERTICAL or ARBITRARYpublic java.awt.Shape getFillable()
getFillable
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
public java.awt.Paint getAreaPaint()
getAreaPaint
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
public void setAreaPaint(java.awt.Paint paint)
setAreaPaint
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
paint
- a Paint instancepublic GJPlotInterface getParentPlot()
public void setParentPlot(GJPlotInterface parentPlot)
parentPlot
- the parentPlot to setpublic double getReference()
public void setReference(double reference)
reference
- the reference to setpublic GJFill.ORIENTATION getOrientation()
public void setOrientation(GJFill.ORIENTATION orientation)
orientation
- the orientation to setpublic java.awt.geom.Area getArbitraryArea()
public void setArbitraryArea(java.awt.geom.Area arbitraryArea)
arbitraryArea
- the arbitraryArea to setpublic final java.util.ArrayList<GJPathSegmentInfo> getSegments()
public final void setSegments(java.util.ArrayList<GJPathSegmentInfo> arr)
arr
- the ArrayListpublic GJFill.MODE getMode()
public void setMode(GJFill.MODE mode)
mode
- the mode to setpublic java.awt.geom.Area getPixelArea()
public java.awt.AlphaComposite getFillComposite()
getFillComposite
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
public void setFillComposite(java.awt.AlphaComposite composite)
setFillComposite
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
composite
- the composite to setpublic float getFillAlpha()
getFillAlpha
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>
public void setFillAlpha(float alpha)
setFillAlpha
in interface GJFillableInterface<java.awt.Shape,java.awt.Paint>