Class SceneElementPositioned

java.lang.Object
  extended by SceneElement
      extended by SceneElementPositioned

public class SceneElementPositioned
extends SceneElement

Class that defines a scene element whose position is defined by its position in the linked list

Author:
Mark Guzdial, Barb Ericson

Constructor Summary
SceneElementPositioned(Picture heldPic)
          Make a new element with a picture as input, and next as null.
 
Method Summary
 void drawWith(Turtle turtle)
          Method to draw from this picture.
 
Methods inherited from class SceneElement
add, count, drawFromMeOn, getNext, getPicture, insertAfter, last, remove, reverse, setNext, setPicture
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneElementPositioned

public SceneElementPositioned(Picture heldPic)
Make a new element with a picture as input, and next as null.

Parameters:
heldPic - Picture for element to hold
Method Detail

drawWith

public void drawWith(Turtle turtle)
Method to draw from this picture.

Specified by:
drawWith in class SceneElement
Parameters:
turtle - the Turtle to use for drawing