Class SceneElementLayered

java.lang.Object
  extended bySceneElement
      extended bySceneElementLayered

public class SceneElementLayered
extends SceneElement


Field Summary
 
Fields inherited from class SceneElement
myPic, next
 
Constructor Summary
SceneElementLayered(Picture heldPic, int xpos, int ypos)
          Make a new element with a picture as input, and next as null, to be drawn at given x,y
 
Method Summary
 void drawWith(Turtle pen)
          Method to draw from this picture.
 
Methods inherited from class SceneElement
add, drawFromMeOn, getNext, getPicture, insertAfter, last, remove, reverse, setNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SceneElementLayered

public SceneElementLayered(Picture heldPic,
                           int xpos,
                           int ypos)
Make a new element with a picture as input, and next as null, to be drawn at given x,y

Parameters:
heldPic - Picture for element to hold
xpos - x position desired for element
ypos - y position desired for element
Method Detail

drawWith

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

Specified by:
drawWith in class SceneElement
Parameters:
pen - Turtle to draw with