org.jfree.chart
public class ClipPath extends Object implements Cloneable
Deprecated: This class is no longer supported (as of version 1.0.4). If you are creating contour plots, please try to use XYPlot and XYBlockRenderer.
This class would typically be used with a ContourPlot. It allows the user to define aGeneralPath
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, Paint fillPaint, Paint drawPaint, Stroke drawStroke, Composite composite)
Constructor for ClipPath.
|
Method Summary | |
---|---|
Object | clone()
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)
Draws the clip path.
|
GeneralPath | generateClipPath(Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
Generates the clip path.
|
Composite | getComposite()
Returns the composite.
|
Paint | getDrawPaint()
Returns the drawPaint.
|
Stroke | getDrawStroke()
Returns the drawStroke.
|
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(Composite composite)
Sets the composite.
|
void | setDrawPaint(Paint drawPaint)
Sets the drawPaint.
|
void | setDrawPath(boolean drawPath)
Sets the drawPath.
|
void | setDrawStroke(Stroke drawStroke)
Sets the drawStroke.
|
void | setFillPaint(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.
|
Parameters: xValue x coordinates of curved to be created yValue y coordinates of curved to be created
Parameters: xValue x coordinates of curved to be created yValue y coordinates of curved to be created clip clip? fillPath whether the path is to filled drawPath whether the path is to drawn as an outline
Parameters: xValue x coordinates of curved to be created yValue y coordinates of curved to be created fillPath whether the path is to filled drawPath whether the path is to drawn as an outline fillPaint the fill paint drawPaint the outline stroke color drawStroke the stroke style composite the composite rule
Returns: The clone.
Throws: CloneNotSupportedException if cloning is not supported.
Parameters: g2 current graphics2D. dataArea the dataArea that the plot is being draw in. horizontalAxis the horizontal axis. verticalAxis the vertical axis.
Returns: The GeneralPath defining the outline
Parameters: dataArea the dataArea that the plot is being draw in. horizontalAxis the horizontal axis. verticalAxis the vertical axis.
Returns: The GeneralPath defining the outline
Returns: Composite
Returns: Paint
Returns: Stroke
Returns: Paint
Returns: double[]
Returns: double[]
Returns: boolean
Returns: boolean
Returns: boolean
Parameters: clip The clip to set
Parameters: composite The composite to set
Parameters: drawPaint The drawPaint to set
Parameters: drawPath The drawPath to set
Parameters: drawStroke The drawStroke to set
Parameters: fillPaint The fillPaint to set
Parameters: fillPath The fillPath to set
Parameters: xValue The xValue to set
Parameters: yValue The yValue to set