|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object PositionedSceneElement
public class PositionedSceneElement
Class that represents a positioned scene element
Constructor Summary | |
---|---|
PositionedSceneElement(Picture heldPic)
Make a new element with a picture as input, and next as null. |
Method Summary | |
---|---|
PositionedSceneElement |
copy()
|
void |
drawFromMeOn(Picture bg)
Method to draw from this node on in the list, using blueScreen. |
PositionedSceneElement |
getNext()
Method to get the next element |
Picture |
getPicture()
Returns the picture in the node. |
void |
insertAfter(PositionedSceneElement node)
Insert the input node after this node. |
PositionedSceneElement |
last()
Method to get the last element |
void |
remove(PositionedSceneElement node)
Method to remove a node from a list, fixing links appropriately. |
void |
replace(Picture oldPic,
Picture newPic)
Replace the one picture with the other picture in all the elements from me on. |
void |
setNext(PositionedSceneElement nextOne)
Method to set the next element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PositionedSceneElement(Picture heldPic)
heldPic
- Picture for element to holdMethod Detail |
---|
public void setNext(PositionedSceneElement nextOne)
nextOne
- next element in listpublic PositionedSceneElement getNext()
public Picture getPicture()
public void drawFromMeOn(Picture bg)
bg
- Picture to draw drawing onpublic void remove(PositionedSceneElement node)
node
- element to remove from list.public void insertAfter(PositionedSceneElement node)
node
- element to insert after this.public PositionedSceneElement copy()
public void replace(Picture oldPic, Picture newPic)
oldPic
- Picture to be replacednewPic
- Picture to put in its placepublic PositionedSceneElement last()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |