|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsm.SMTag
sm.SMHierarchyTag
A SMHierarchyTag(SMShape s)
tags s and every shape whose s is an ancestor.
Constructor Summary | |
SMHierarchyTag(SMHierarchy h)
Builds a SMHierarchyTag with the set of shapes contained in a hierarchy. |
|
SMHierarchyTag(SMShape s)
Builds a SMHierarchyTag with the set composed of s and every shape whose s is an ancestor.. |
Method Summary | |
SMHierarchy |
getHierarchy()
Returns the collection of this tag as a hierarchy. |
boolean |
hasNext()
Tests if there is other shapes tagged by this tag. |
SMShape |
nextShape()
|
void |
reset()
Inits the tag's iterator. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SMHierarchyTag(SMHierarchy h)
SMHierarchyTag
with the set of shapes contained in a hierarchy.
h
- The hierarchy.public SMHierarchyTag(SMShape s)
SMHierarchyTag
with the set composed of s and every shape whose s is an ancestor..
s
- The parent shape of the hierarchy.Method Detail |
public void reset()
SMTag
reset
in class SMTag
public boolean hasNext()
SMTag
hasNext
in interface java.util.Iterator
hasNext
in class SMTag
Iterator.hasNext()
public SMHierarchy getHierarchy()
SMHierarchy
public SMShape nextShape()
nextShape
in class SMTag
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |