|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DrawableNode PictNode
public class PictNode
PictNode is a class representing a drawn picture node in a scene tree.
Constructor Summary | |
---|---|
PictNode(Picture pict)
Make me with this picture |
Method Summary | |
---|---|
void |
drawWith(Turtle theTurtle)
Use the given turtle to draw oneself |
Picture |
getPicture()
Method to get the picture |
String |
toString()
Method to return a string with information about this node |
Methods inherited from class DrawableNode |
---|
add, drawOn, getNext, insertAfter, last, remove, setNext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PictNode(Picture pict)
pict
- the Picture to useMethod Detail |
---|
public Picture getPicture()
public String toString()
toString
in class Object
public void drawWith(Turtle theTurtle)
drawWith
in class DrawableNode
theTurtle
- the Turtle to draw with
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |