Class PictNode

java.lang.Object
  extended by DrawableNode
      extended by PictNode
Direct Known Subclasses:
BlueScreenNode

public class PictNode
extends DrawableNode

PictNode is a class representing a drawn picture node in a scene tree.

Author:
Mark Guzdial, Barb Ericson

Constructor Summary
PictNode(Picture pict)
          Make me with this picture
 
Method Summary
 void drawWith(Turtle theTurtle)
          Use the given turtle to draw oneself
 Picture getPicture()
          Method to get the picture
 String toString()
          Method to return a string with information about this node
 
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

PictNode

public PictNode(Picture pict)
Make me with this picture

Parameters:
pict - the Picture to use
Method Detail

getPicture

public Picture getPicture()
Method to get the picture

Returns:
the picture associated with this node

toString

public String toString()
Method to return a string with information about this node

Overrides:
toString in class Object
Returns:
the information string

drawWith

public void drawWith(Turtle theTurtle)
Use the given turtle to draw oneself

Specified by:
drawWith in class DrawableNode
Parameters:
theTurtle - the Turtle to draw with