|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.toolbox.VectorFigure
A VectorFigure is a figure containing a list of objects that are drawn to produce the figure. The list of objects that are drawn includes both geometric objects and drawing control objects. Specifically:
| Constructor Summary | |
VectorFigure()
Create a new blank figure. |
|
| Method Summary | |
void |
add(java.awt.Composite c)
Add a new compositioning operator to the list of drawn objects. |
void |
add(Figure f)
Add a new figure to the list of drawn objects |
void |
add(java.awt.Paint p)
Add a new paint to the list of drawn objects. |
void |
add(java.awt.Shape s)
Add a new painted shape to the list of drawn objects. |
void |
add(java.awt.Stroke s)
Add a new stroke to the list of drawn objects. |
void |
fillMode()
Add an object to the list that puts drawing into fill mode |
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of this figure. |
java.awt.Shape |
getShape()
Get the shape of this figure. |
void |
lineMode()
Add an object to the list that puts drawing into line mode |
void |
paint(java.awt.Graphics2D g)
Paint the figure. |
void |
setShape(java.awt.Shape s)
Set the shape of this Figure. |
void |
transform(java.awt.geom.AffineTransform at)
Transform the figure with the supplied transform. |
| Methods inherited from class diva.canvas.AbstractFigure |
contains, getInteractor, getLayer, getOrigin, 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 |
| Constructor Detail |
public VectorFigure()
| Method Detail |
public void add(java.awt.Shape s)
public void add(Figure f)
public void add(java.awt.Composite c)
public void add(java.awt.Paint p)
public void add(java.awt.Stroke s)
public void fillMode()
public java.awt.geom.Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class AbstractFigurepublic java.awt.Shape getShape()
getShape in interface FiguregetShape in class AbstractFigurepublic void lineMode()
public void paint(java.awt.Graphics2D g)
paint in interface VisibleComponentpaint in class AbstractFigurepublic void setShape(java.awt.Shape s)
public void transform(java.awt.geom.AffineTransform at)
transform in interface Figuretransform in class AbstractFigure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||