Class HBranch
java.lang.Object
DrawableNode
Branch
HBranch
- public class HBranch
- extends Branch
Field Summary |
(package private) int |
gap
Horizontal gap between children |
Constructor Summary |
HBranch(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 |
gap
int gap
- Horizontal gap between children
HBranch
public HBranch(int spacing)
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