|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDrawableNode
Branch
Field Summary | |
DrawableNode |
children
|
Fields inherited from class DrawableNode |
next |
Constructor Summary | |
Branch()
|
Method Summary | |
void |
addChild(DrawableNode child)
Method to add nodes to children |
void |
drawWith(Turtle pen)
Use the given turtle to draw oneself |
String |
toString()
Method to return a string with informaiton about this branch |
Methods inherited from class DrawableNode |
add, drawOn, getNext, insertAfter, last, remove, setNext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public DrawableNode children
Constructor Detail |
public Branch()
Method Detail |
public String toString()
public void addChild(DrawableNode child)
public void drawWith(Turtle pen)
DrawableNode
drawWith
in class DrawableNode
pen
- the Turtle to draw with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |