|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.ClipPath
XYPlot
and
XYBlockRenderer
.
public class ClipPath
This class would typically be used with a
ContourPlot
. It allows the user to define a
GeneralPath
curve in plot coordinates. This curve can then be
used mask off or define regions within the contour plot. The data must be
sorted.
Constructor Summary | |
---|---|
ClipPath()
Deprecated. Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue)
Deprecated. Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue,
boolean clip,
boolean fillPath,
boolean drawPath)
Deprecated. Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue,
boolean fillPath,
boolean drawPath,
Paint fillPaint,
Paint drawPaint,
Stroke drawStroke,
Composite composite)
Deprecated. Constructor for ClipPath. |
Method Summary | |
---|---|
Object |
clone()
Deprecated. Returns a clone of the object (a deeper clone than default to avoid bugs when setting values in cloned object). |
GeneralPath |
draw(Graphics2D g2,
Rectangle2D dataArea,
ValueAxis horizontalAxis,
ValueAxis verticalAxis)
Deprecated. Draws the clip path. |
GeneralPath |
generateClipPath(Rectangle2D dataArea,
ValueAxis horizontalAxis,
ValueAxis verticalAxis)
Deprecated. Generates the clip path. |
Composite |
getComposite()
Deprecated. Returns the composite. |
Paint |
getDrawPaint()
Deprecated. Returns the drawPaint. |
Stroke |
getDrawStroke()
Deprecated. Returns the drawStroke. |
Paint |
getFillPaint()
Deprecated. Returns the fillPaint. |
double[] |
getXValue()
Deprecated. Returns the xValue. |
double[] |
getYValue()
Deprecated. Returns the yValue. |
boolean |
isClip()
Deprecated. Returns the clip. |
boolean |
isDrawPath()
Deprecated. Returns the drawPath. |
boolean |
isFillPath()
Deprecated. Returns the fillPath. |
void |
setClip(boolean clip)
Deprecated. Sets the clip. |
void |
setComposite(Composite composite)
Deprecated. Sets the composite. |
void |
setDrawPaint(Paint drawPaint)
Deprecated. Sets the drawPaint. |
void |
setDrawPath(boolean drawPath)
Deprecated. Sets the drawPath. |
void |
setDrawStroke(Stroke drawStroke)
Deprecated. Sets the drawStroke. |
void |
setFillPaint(Paint fillPaint)
Deprecated. Sets the fillPaint. |
void |
setFillPath(boolean fillPath)
Deprecated. Sets the fillPath. |
void |
setXValue(double[] xValue)
Deprecated. Sets the xValue. |
void |
setYValue(double[] yValue)
Deprecated. Sets the yValue. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClipPath()
public ClipPath(double[] xValue, double[] yValue)
xValue
- x coordinates of curved to be createdyValue
- y coordinates of curved to be createdpublic ClipPath(double[] xValue, double[] yValue, boolean clip, boolean fillPath, boolean drawPath)
xValue
- x coordinates of curved to be createdyValue
- y coordinates of curved to be createdclip
- clip?fillPath
- whether the path is to filleddrawPath
- whether the path is to drawn as an outlinepublic ClipPath(double[] xValue, double[] yValue, boolean fillPath, boolean drawPath, Paint fillPaint, Paint drawPaint, Stroke drawStroke, Composite composite)
xValue
- x coordinates of curved to be createdyValue
- y coordinates of curved to be createdfillPath
- whether the path is to filleddrawPath
- whether the path is to drawn as an outlinefillPaint
- the fill paintdrawPaint
- the outline stroke colordrawStroke
- the stroke stylecomposite
- the composite ruleMethod Detail |
---|
public GeneralPath draw(Graphics2D g2, Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
g2
- current graphics2D.dataArea
- the dataArea that the plot is being draw in.horizontalAxis
- the horizontal axis.verticalAxis
- the vertical axis.
public GeneralPath generateClipPath(Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
dataArea
- the dataArea that the plot is being draw in.horizontalAxis
- the horizontal axis.verticalAxis
- the vertical axis.
public Composite getComposite()
public Paint getDrawPaint()
public boolean isDrawPath()
public Stroke getDrawStroke()
public Paint getFillPaint()
public boolean isFillPath()
public double[] getXValue()
public double[] getYValue()
public void setComposite(Composite composite)
composite
- The composite to setpublic void setDrawPaint(Paint drawPaint)
drawPaint
- The drawPaint to setpublic void setDrawPath(boolean drawPath)
drawPath
- The drawPath to setpublic void setDrawStroke(Stroke drawStroke)
drawStroke
- The drawStroke to setpublic void setFillPaint(Paint fillPaint)
fillPaint
- The fillPaint to setpublic void setFillPath(boolean fillPath)
fillPath
- The fillPath to setpublic void setXValue(double[] xValue)
xValue
- The xValue to setpublic void setYValue(double[] yValue)
yValue
- The yValue to setpublic boolean isClip()
public void setClip(boolean clip)
clip
- The clip to setpublic Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if cloning is not supported.
|
JFreeChart 1.0.14-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |