Class SceneElementLayered
java.lang.Object
SceneElement
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 |
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 holdxpos
- x position desired for elementypos
- y position desired for element
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