|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Figure
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 |
---|
boolean contains(java.awt.geom.Point2D p)
java.awt.geom.Rectangle2D getBounds()
Interactor getInteractor()
CanvasLayer getLayer()
java.awt.geom.Point2D getOrigin()
CanvasComponent getParent()
getParent
in interface CanvasComponent
java.awt.Shape getShape()
java.lang.String getToolTipText()
boolean hit(java.awt.geom.Rectangle2D r)
(This method would be better named hits, but the name hit is consistent with java.awt.Graphics2D.)
boolean intersects(java.awt.geom.Rectangle2D r)
void setInteractor(Interactor interactor)
void setParent(CanvasComponent fc)
void setToolTipText(java.lang.String s)
void transform(java.awt.geom.AffineTransform at)
void translate(double x, double y)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |