|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Figure is a persistent object drawn on the screen. This interface roots a small tree of interfaces that define various roles that different kinds of figures play. It is also implemented by the AbstractFigure class, which roots the tree of concrete figure classes.
| Yellow |
| Method Summary | |
boolean |
contains(java.awt.geom.Point2D p)
Test whether this figure contains the point given. |
java.awt.geom.Rectangle2D |
getBounds()
Get the bounding box of this figure. |
Interactor |
getInteractor()
Return the interactor of this figure. |
CanvasLayer |
getLayer()
Get the most immediate layer containing this figure. |
java.awt.geom.Point2D |
getOrigin()
Return the origin of the figure in the enclosing transform context. |
CanvasComponent |
getParent()
Return the parent of this figure. |
java.awt.Shape |
getShape()
Get the outline shape of this figure. |
java.lang.String |
getToolTipText()
Return the tooltip string for this figure, or null if the figure does not have a tooltip. |
boolean |
hit(java.awt.geom.Rectangle2D r)
Test if this figure is "hit" by the given rectangle. |
boolean |
intersects(java.awt.geom.Rectangle2D r)
Test if this figure intersects the given rectangle. |
void |
setInteractor(Interactor interactor)
Set the interactor of this figure. |
void |
setParent(CanvasComponent fc)
Set the parent of this figure. |
void |
setToolTipText(java.lang.String s)
Set the tooltip string for this figure. |
void |
transform(java.awt.geom.AffineTransform at)
Transform the figure with the supplied transform. |
void |
translate(double x,
double y)
Move the figure the indicated distance. |
| Methods inherited from interface diva.canvas.VisibleComponent |
isVisible, paint, paint, setVisible |
| Methods inherited from interface diva.canvas.CanvasComponent |
getTransformContext, repaint, repaint |
| Methods inherited from interface diva.util.UserObjectContainer |
getUserObject, setUserObject |
| Method Detail |
public boolean contains(java.awt.geom.Point2D p)
public java.awt.geom.Rectangle2D getBounds()
public Interactor getInteractor()
public CanvasLayer getLayer()
public java.awt.geom.Point2D getOrigin()
public CanvasComponent getParent()
getParent in interface CanvasComponentpublic java.awt.Shape getShape()
public java.lang.String getToolTipText()
public boolean hit(java.awt.geom.Rectangle2D r)
(This method would be better named hits, but the name hit is consistent with java.awt.Graphics2D.)
public boolean intersects(java.awt.geom.Rectangle2D r)
public void setInteractor(Interactor interactor)
public void setParent(CanvasComponent fc)
public void setToolTipText(java.lang.String s)
public void transform(java.awt.geom.AffineTransform at)
public void translate(double x,
double y)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||