Class PathFigure

  • All Implemented Interfaces:
    CanvasComponent, Figure, ShapedFigure, VisibleComponent, UserObjectContainer

    @Deprecated
    public class PathFigure
    extends BasicFigure
    Deprecated.
    BasicFigure now does everything this class used to do.
    A PathFigure is one that contains a single instance of Shape. The figure can have a fill with optional compositing (for translucency), and a stroke with a different fill. With this class, simple objects can be created on-the-fly simply by passing an instance of java.awt.Shape to the constructor. This class is mainly intended for use for open shapes (without fill). For filled shapes, use the BasicFigure class, and for more complex figures, use VectorFigure or create a custom Figure class.
    Version:
    $Id$
    Author:
    John Reekie
    • Constructor Detail

      • PathFigure

        public PathFigure​(java.awt.Shape shape)
        Deprecated.
        Create a new figure with the given shape. The figure, by default, has a unit-width continuous black outline and no fill. The given shape will be cloned to prevent the original from being modified.
      • PathFigure

        @Deprecated
        public PathFigure​(java.awt.Shape shape,
                          int lineWidth)
        Deprecated.
        Use the float constructor instead.
        Create a new figure with the given shape and outline width. It has no fill. The default outline paint is black. The given shape will be cloned to prevent the original from being modified.
      • PathFigure

        public PathFigure​(java.awt.Shape shape,
                          float lineWidth)
        Deprecated.
        Create a new figure with the given shape and outline width. It has no fill. The default outline paint is black. The given shape will be cloned to prevent the original from being modified.
      • PathFigure

        public PathFigure​(java.awt.Shape shape,
                          java.awt.Paint fill)
        Deprecated.
        Create a new figure with the given paint pattern. The figure, by default, has no stroke. The given shape will be cloned to prevent the original from being modified.
      • PathFigure

        public PathFigure​(java.awt.Shape shape,
                          java.awt.Paint fill,
                          float lineWidth)
        Deprecated.
        Create a new figure with the given paint pattern and line width. The given shape will be cloned to prevent the original from being modified.