Class SceneElementLayered

java.lang.Object
  extended by SceneElement
      extended by SceneElementLayered

public class SceneElementLayered
extends SceneElement

A scene element that knows its position

Author:
Mark Guzdial, Barb Ericson

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 turtle)
          Method to draw from this picture on.
 
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

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 turtle)
Method to draw from this picture on.

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