Class SceneElementPositioned
java.lang.Object
SceneElement
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
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 |
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
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