|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.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()
Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue)
Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue,
boolean clip,
boolean fillPath,
boolean drawPath)
Constructor for ClipPath. |
|
ClipPath(double[] xValue,
double[] yValue,
boolean fillPath,
boolean drawPath,
java.awt.Paint fillPaint,
java.awt.Paint drawPaint,
java.awt.Stroke drawStroke,
java.awt.Composite composite)
Constructor for ClipPath. |
|
| Method Summary | |
java.lang.Object |
clone()
Returns a clone of the object (a deeper clone than default to avoid bugs when setting values in cloned object). |
java.awt.geom.GeneralPath |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D dataArea,
ValueAxis horizontalAxis,
ValueAxis verticalAxis)
Draws the clip path. |
java.awt.geom.GeneralPath |
generateClipPath(java.awt.geom.Rectangle2D dataArea,
ValueAxis horizontalAxis,
ValueAxis verticalAxis)
Generates the clip path. |
java.awt.Composite |
getComposite()
Returns the composite. |
java.awt.Paint |
getDrawPaint()
Returns the drawPaint. |
java.awt.Stroke |
getDrawStroke()
Returns the drawStroke. |
java.awt.Paint |
getFillPaint()
Returns the fillPaint. |
double[] |
getXValue()
Returns the xValue. |
double[] |
getYValue()
Returns the yValue. |
boolean |
isClip()
Returns the clip. |
boolean |
isDrawPath()
Returns the drawPath. |
boolean |
isFillPath()
Returns the fillPath. |
void |
setClip(boolean clip)
Sets the clip. |
void |
setComposite(java.awt.Composite composite)
Sets the composite. |
void |
setDrawPaint(java.awt.Paint drawPaint)
Sets the drawPaint. |
void |
setDrawPath(boolean drawPath)
Sets the drawPath. |
void |
setDrawStroke(java.awt.Stroke drawStroke)
Sets the drawStroke. |
void |
setFillPaint(java.awt.Paint fillPaint)
Sets the fillPaint. |
void |
setFillPath(boolean fillPath)
Sets the fillPath. |
void |
setXValue(double[] xValue)
Sets the xValue. |
void |
setYValue(double[] yValue)
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 created
public 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 outline
public ClipPath(double[] xValue,
double[] yValue,
boolean fillPath,
boolean drawPath,
java.awt.Paint fillPaint,
java.awt.Paint drawPaint,
java.awt.Stroke drawStroke,
java.awt.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 rule| Method Detail |
public java.awt.geom.GeneralPath draw(java.awt.Graphics2D g2,
java.awt.geom.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 java.awt.geom.GeneralPath generateClipPath(java.awt.geom.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 java.awt.Composite getComposite()
public java.awt.Paint getDrawPaint()
public boolean isDrawPath()
public java.awt.Stroke getDrawStroke()
public java.awt.Paint getFillPaint()
public boolean isFillPath()
public double[] getXValue()
public double[] getYValue()
public void setComposite(java.awt.Composite composite)
composite - The composite to setpublic void setDrawPaint(java.awt.Paint drawPaint)
drawPaint - The drawPaint to setpublic void setDrawPath(boolean drawPath)
drawPath - The drawPath to setpublic void setDrawStroke(java.awt.Stroke drawStroke)
drawStroke - The drawStroke to setpublic void setFillPaint(java.awt.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 set
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException - if cloning is not supported.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||