Class BlueScreenNode

java.lang.Object
  extended by DrawableNode
      extended by PictNode
          extended by 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

Constructor Summary
BlueScreenNode(Picture p)
          Constructor that sets the picture
 
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
 
Methods inherited from class PictNode
getPicture
 
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
 

Constructor Detail

BlueScreenNode

public BlueScreenNode(Picture p)
Constructor that sets the picture

Parameters:
p - the Picture to use
Method Detail

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