Class ClipPath

java.lang.Object
org.jfree.chart.ClipPath
All Implemented Interfaces:
Cloneable

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 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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private boolean
    Deprecated.
    Controls whether drawing will be clipped ( false would still allow the drawing or filling of path
    private Composite
    Deprecated.
    The composite.
    private Paint
    Deprecated.
    The draw paint.
    private boolean
    Deprecated.
    Controls whether the path is drawn as an outline.
    private Stroke
    Deprecated.
    The draw stroke.
    private Paint
    Deprecated.
    The fill paint.
    private boolean
    Deprecated.
    Controls whether the path is filled.
    private double[]
    Deprecated.
    The x values.
    private double[]
    Deprecated.
    The y values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    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

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns a clone of the object (a deeper clone than default to avoid bugs when setting values in cloned object).
    draw(Graphics2D g2, Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
    Deprecated.
    Draws the clip path.
    generateClipPath(Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
    Deprecated.
    Generates the clip path.
    Deprecated.
    Returns the composite.
    Deprecated.
    Returns the drawPaint.
    Deprecated.
    Returns the drawStroke.
    Deprecated.
    Returns the fillPaint.
    double[]
    Deprecated.
    Returns the xValue.
    double[]
    Deprecated.
    Returns the yValue.
    boolean
    Deprecated.
    Returns the clip.
    boolean
    Deprecated.
    Returns the drawPath.
    boolean
    Deprecated.
    Returns the fillPath.
    void
    setClip(boolean clip)
    Deprecated.
    Sets the clip.
    void
    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
  • Field Details

    • xValue

      private double[] xValue
      Deprecated.
      The x values.
    • yValue

      private double[] yValue
      Deprecated.
      The y values.
    • clip

      private boolean clip
      Deprecated.
      Controls whether drawing will be clipped ( false would still allow the drawing or filling of path
    • drawPath

      private boolean drawPath
      Deprecated.
      Controls whether the path is drawn as an outline.
    • fillPath

      private boolean fillPath
      Deprecated.
      Controls whether the path is filled.
    • fillPaint

      private Paint fillPaint
      Deprecated.
      The fill paint.
    • drawPaint

      private Paint drawPaint
      Deprecated.
      The draw paint.
    • drawStroke

      private Stroke drawStroke
      Deprecated.
      The draw stroke.
    • composite

      private Composite composite
      Deprecated.
      The composite.
  • Constructor Details

    • ClipPath

      public ClipPath()
      Deprecated.
      Constructor for ClipPath.
    • ClipPath

      public ClipPath(double[] xValue, double[] yValue)
      Deprecated.
      Constructor for ClipPath. Default values are assumed for the fillPath and drawPath options as false and true respectively. The fillPaint is set to Color.GRAY, the drawColor is Color.BLUE, the stroke is BasicStroke(1) and the composite is AlphaComposite.Src.
      Parameters:
      xValue - x coordinates of curved to be created
      yValue - y coordinates of curved to be created
    • ClipPath

      public ClipPath(double[] xValue, double[] yValue, boolean clip, boolean fillPath, boolean drawPath)
      Deprecated.
      Constructor for ClipPath. The fillPaint is set to Color.GRAY, the drawColor is Color.BLUE, the stroke is BasicStroke(1) and the composite is AlphaComposite.Src.
      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
    • ClipPath

      public ClipPath(double[] xValue, double[] yValue, boolean fillPath, boolean drawPath, Paint fillPaint, Paint drawPaint, Stroke drawStroke, Composite composite)
      Deprecated.
      Constructor for ClipPath.
      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
  • Method Details

    • draw

      public GeneralPath draw(Graphics2D g2, Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
      Deprecated.
      Draws the clip path.
      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
    • generateClipPath

      public GeneralPath generateClipPath(Rectangle2D dataArea, ValueAxis horizontalAxis, ValueAxis verticalAxis)
      Deprecated.
      Generates the clip path.
      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
    • getComposite

      public Composite getComposite()
      Deprecated.
      Returns the composite.
      Returns:
      Composite
    • getDrawPaint

      public Paint getDrawPaint()
      Deprecated.
      Returns the drawPaint.
      Returns:
      Paint
    • isDrawPath

      public boolean isDrawPath()
      Deprecated.
      Returns the drawPath.
      Returns:
      boolean
    • getDrawStroke

      public Stroke getDrawStroke()
      Deprecated.
      Returns the drawStroke.
      Returns:
      Stroke
    • getFillPaint

      public Paint getFillPaint()
      Deprecated.
      Returns the fillPaint.
      Returns:
      Paint
    • isFillPath

      public boolean isFillPath()
      Deprecated.
      Returns the fillPath.
      Returns:
      boolean
    • getXValue

      public double[] getXValue()
      Deprecated.
      Returns the xValue.
      Returns:
      double[]
    • getYValue

      public double[] getYValue()
      Deprecated.
      Returns the yValue.
      Returns:
      double[]
    • setComposite

      public void setComposite(Composite composite)
      Deprecated.
      Sets the composite.
      Parameters:
      composite - The composite to set
    • setDrawPaint

      public void setDrawPaint(Paint drawPaint)
      Deprecated.
      Sets the drawPaint.
      Parameters:
      drawPaint - The drawPaint to set
    • setDrawPath

      public void setDrawPath(boolean drawPath)
      Deprecated.
      Sets the drawPath.
      Parameters:
      drawPath - The drawPath to set
    • setDrawStroke

      public void setDrawStroke(Stroke drawStroke)
      Deprecated.
      Sets the drawStroke.
      Parameters:
      drawStroke - The drawStroke to set
    • setFillPaint

      public void setFillPaint(Paint fillPaint)
      Deprecated.
      Sets the fillPaint.
      Parameters:
      fillPaint - The fillPaint to set
    • setFillPath

      public void setFillPath(boolean fillPath)
      Deprecated.
      Sets the fillPath.
      Parameters:
      fillPath - The fillPath to set
    • setXValue

      public void setXValue(double[] xValue)
      Deprecated.
      Sets the xValue.
      Parameters:
      xValue - The xValue to set
    • setYValue

      public void setYValue(double[] yValue)
      Deprecated.
      Sets the yValue.
      Parameters:
      yValue - The yValue to set
    • isClip

      public boolean isClip()
      Deprecated.
      Returns the clip.
      Returns:
      boolean
    • setClip

      public void setClip(boolean clip)
      Deprecated.
      Sets the clip.
      Parameters:
      clip - The clip to set
    • clone

      public Object clone() throws CloneNotSupportedException
      Deprecated.
      Returns a clone of the object (a deeper clone than default to avoid bugs when setting values in cloned object).
      Overrides:
      clone in class Object
      Returns:
      The clone.
      Throws:
      CloneNotSupportedException - if cloning is not supported.