Class VBranch

java.lang.Object
  extended byDrawableNode
      extended byBranch
          extended byVBranch

public class VBranch
extends Branch


Field Summary
(package private)  int gap
          Vertical gap between children
 
Fields inherited from class Branch
children
 
Fields inherited from class DrawableNode
next
 
Constructor Summary
VBranch(int spacing)
           
 
Method Summary
 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 Branch
addChild
 
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

gap

int gap
Vertical gap between children

Constructor Detail

VBranch

public VBranch(int spacing)
Method Detail

toString

public String toString()
Method to return a string with informaiton about this branch

Overrides:
toString in class Branch

drawWith

public void drawWith(Turtle pen)
Description copied from class: DrawableNode
Use the given turtle to draw oneself

Overrides:
drawWith in class Branch