Class BlueScreenNode
java.lang.Object
DrawableNode
PictNode
BlueScreenNode
public class BlueScreenNode
- extends PictNode
BlueScreenNode is a PictNode that composes the
picture using the blueScreen() method in Picture
- Author:
- Mark Guzdial, Barb Ericson
|
Method Summary |
void |
drawWith(Turtle theTurtle)
Use the given turtle to draw oneself
Get the turtle's picture, then blueScreen onto it |
String |
toString()
Method to return a string with information
about this node |
BlueScreenNode
public BlueScreenNode(Picture p)
- Constructor that sets the picture
- Parameters:
p - the Picture to use
toString
public String toString()
- Method to return a string with information
about this node
- Overrides:
toString in class PictNode
- Returns:
- the information string
drawWith
public void drawWith(Turtle theTurtle)
- Use the given turtle to draw oneself
Get the turtle's picture, then blueScreen onto it
- Overrides:
drawWith in class PictNode
- Parameters:
theTurtle - the Turtle to draw with