diva.canvas.toolbox
Class PathFigure

java.lang.Object
  extended by diva.canvas.AbstractFigure
      extended by diva.canvas.toolbox.BasicFigure
          extended by diva.canvas.toolbox.PathFigure
All Implemented Interfaces:
CanvasComponent, Figure, ShapedFigure, VisibleComponent, UserObjectContainer

Deprecated. BasicFigure now does everything this class used to do.

public class PathFigure
extends BasicFigure

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: PathFigure.java 41477 2006-03-29 00:03:58Z cxh $
Author:
John Reekie

Constructor Summary
PathFigure(java.awt.Shape shape)
          Deprecated. Create a new figure with the given shape.
PathFigure(java.awt.Shape shape, float lineWidth)
          Deprecated. Create a new figure with the given shape and outline width.
PathFigure(java.awt.Shape shape, int lineWidth)
          Deprecated. Use the float constructor instead.
PathFigure(java.awt.Shape shape, java.awt.Paint fill)
          Deprecated. Create a new figure with the given paint pattern.
PathFigure(java.awt.Shape shape, java.awt.Paint fill, float lineWidth)
          Deprecated. Create a new figure with the given paint pattern and line width.
 
Method Summary
 
Methods inherited from class diva.canvas.toolbox.BasicFigure
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setShape, setStroke, setStrokePaint, transform
 
Methods inherited from class diva.canvas.AbstractFigure
contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible, translate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.canvas.Figure
contains, getInteractor, getLayer, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText, translate
 
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, setVisible
 
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
 
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
 

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

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.