|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface may be implemented by a tree in order to allow a
TreeDrawing
to be constructed from the tree.
Empty trees may be
represented either by null references or by objects whose
isEmpty
methods return true. If null
references
are used, isEmpty
should always return false.
TreeDrawing
Method Summary | |
TreeInterface[] |
getChildren()
Returns the children of the tree. |
Object |
getRoot()
Returns the root of the tree. |
boolean |
isEmpty()
Returns true if the tree is empty. |
Method Detail |
public Object getRoot() throws EmptyTreeException
EmptyTreeException
- if the tree is empty.Object.toString()
public TreeInterface[] getChildren() throws EmptyTreeException
EmptyTreeException
- if the tree is empty.public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |