All Implemented Interfaces:
CanvasComponent, Figure, VisibleComponent, UserObjectContainer
A PaintedFigure is contains an arbitrary set of PaintedObjects
in a list. This figure can be used for constructing more complex
figures than classes such as BasicFigure. It contains a transform
that is used for scaling the contained painted objects. (Note
that, if using this class to construct a figure from an external
source, the initial transform should operate on the coordinates
Version: $Id: PaintedFigure.java 70398 2014-10-22 23:44:32Z cxh $
Author: John Reekie, Nick Zamora
Constructor and Description
Create a new blank figure.
( PaintedFigure PaintedList objects)
Create a new figure that paints itself using the given PaintedList.
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
( add PaintedObject po)
Add a new painted object to the objects displayed
by this figure.
Get the bounding box of this figure.
Get the color composition operator of this figure.
Return the origin, which is the point relative to which all of the
contained objects are drawn.
Get the painted list of painted objects of this figure.
Get the shape of this figure.
(java.awt.Graphics2D g) paint
Paint the figure.
(java.awt.Composite c) setComposite
Set the color composition operator of this figure.
(java.awt.geom.AffineTransform at) transform
Transform the figure with the supplied transform.
Methods inherited from class diva.canvas.
AbstractFigure contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, hit, 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
public void setComposite(java.awt.Composite c)
Set the color composition operator of this figure. If the
composite is set to null, then the composite will not be
changed when the figure is painted. By default, the composite
is set to opaque.
public void transform(java.awt.geom.AffineTransform at)
Transform the figure with the supplied transform. This can be
used to perform arbitrary translation, scaling, shearing, and
at - The transform to be used.