|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FigureContainer
The FigureContainer interface is implemented by any visible component that can contain figures. It includes all of the methods in VisibleComponent and FigureSet, and adds methods related to containment of a known and finite set of figures.
Yellow |
Method Summary | |
---|---|
void |
add(Figure f)
Add a figure to this container. |
boolean |
contains(Figure f)
Test if this container contains the given figure. |
void |
decorate(Figure f,
FigureDecorator d)
Decorate a child figure, replacing the child figure with the decorator. |
int |
getFigureCount()
Return the number of figures in this container. |
Figure |
pick(java.awt.geom.Rectangle2D region)
Given a rectangle, return the top-most descendent figure that hits it. |
Figure |
pick(java.awt.geom.Rectangle2D region,
Filter f)
Given a rectangle, return the top-most descendent figure that hits it, and is accepted by the given filter. |
void |
remove(Figure f)
Remove the given figure from this container. |
void |
undecorate(FigureDecorator d)
Remove a figure from the given decorator and add it back into this container. |
Methods inherited from interface diva.canvas.FigureSet |
---|
figures, figuresFromBack, figuresFromFront |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, paint, setVisible |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getParent, getTransformContext, repaint, repaint |
Method Detail |
---|
void add(Figure f)
boolean contains(Figure f)
contains
in interface FigureSet
void decorate(Figure f, FigureDecorator d)
int getFigureCount()
Figure pick(java.awt.geom.Rectangle2D region)
Note that a region is given instead of a point so that "pick halo" can be implemented. The region should not have zero size, or no figure will be hit.
Figure pick(java.awt.geom.Rectangle2D region, Filter f)
Note that a region is given instead of a point so that "pick halo" can be implemented. The region should not have zero size, or no figure will be hit.
void remove(Figure f)
void undecorate(FigureDecorator d)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |