|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Employ Visitor Pattern to enable specific invocations at each Leaf in the RectangleHierarchy.
Note: Internal nodes (with children) are not involved in any drawing
Method Summary | |
void |
setVisible(boolean visible)
If a RectangleHierarchyVisitor performs actions of an asynchronous nature, it needs to be told to stop. |
void |
visit(RectangleHierarchy node)
Visit a node in the hierarchy. |
void |
visit(RectangleHierarchy node,
java.awt.Rectangle clip)
Visit a node in the hierarchy. |
Method Detail |
public void setVisible(boolean visible)
This is called by external entity who knows when the visitor will no longer be needed.
public void visit(RectangleHierarchy node)
node
- node withiin RectangleHierarchy.public void visit(RectangleHierarchy node, java.awt.Rectangle clip)
All drawing must be clipped to given clip rectangle. [clip is unaffected by this invocation.]
node
- node within RectangleHierarchy.clip
- Rectangle to which all drawing is to be clipped.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |