Package diva.canvas.toolbox
Class PathFigure
- java.lang.Object
-
- diva.canvas.AbstractFigure
-
- diva.canvas.toolbox.BasicFigure
-
- diva.canvas.toolbox.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 Summary
Constructors Constructor Description 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, getRotation, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setRotation, 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.CanvasComponent
getTransformContext, repaint, repaint
-
Methods inherited from interface diva.canvas.Figure
contains, getInteractor, getLayer, getParent, getToolTipText, intersects, setInteractor, setParent, setToolTipText, translate
-
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
-
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, setVisible
-
-
-
-
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.
-
-