Class PictNode
java.lang.Object
DrawableNode
PictNode
- Direct Known Subclasses:
- BlueScreenNode
- public class PictNode
- extends DrawableNode
Field Summary |
(package private) Picture |
myPict
The picture I'm associated with |
Method Summary |
void |
drawWith(Turtle pen)
Use the given turtle to draw oneself |
String |
toString()
Method to return a string with informaiton
about this node |
myPict
Picture myPict
- The picture I'm associated with
PictNode
public PictNode(Picture pict)
toString
public String toString()
- Method to return a string with informaiton
about this node
drawWith
public void drawWith(Turtle pen)
- Description copied from class:
DrawableNode
- Use the given turtle to draw oneself
- Specified by:
drawWith
in class DrawableNode
- Parameters:
pen
- the Turtle to draw with