|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object DrawableNode
public abstract class DrawableNode
Stuff that all nodes and branches in the scene tree know.
Constructor Summary | |
---|---|
DrawableNode()
Constructor for DrawableNode just sets next to null |
Method Summary | |
---|---|
void |
add(DrawableNode node)
Add the input node after the last node in this list. |
void |
drawOn(Picture bg)
Draw on the given picture |
abstract void |
drawWith(Turtle t)
Use the given turtle to draw oneself |
DrawableNode |
getNext()
Method to get the next node |
void |
insertAfter(DrawableNode node)
Insert the input node after this node. |
DrawableNode |
last()
Return the last element in the list |
void |
remove(DrawableNode node)
Method to remove a node from the list, fixing links appropriately. |
void |
setNext(DrawableNode nextOne)
Method to set the next node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawableNode()
Method Detail |
---|
public void setNext(DrawableNode nextOne)
nextOne
- next node in listpublic DrawableNode getNext()
public abstract void drawWith(Turtle t)
t
- the Turtle to draw withpublic void drawOn(Picture bg)
bg
- the background picture to draw onpublic void remove(DrawableNode node)
node
- the element to remove from list.public void insertAfter(DrawableNode node)
node
- element to insert after this.public DrawableNode last()
public void add(DrawableNode node)
node
- element to insert after this.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |