|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectPictureStack
public class PictureStack
Class that represents a stack of pictures
Constructor Summary | |
---|---|
PictureStack()
Constructor |
Method Summary | |
---|---|
boolean |
isEmpty()
Method to return true if the stack is empty |
SceneElement |
peek()
Method to return the top element, but not remove it from the stack |
SceneElement |
pop()
Method to return the top element from the stack and remove it from the stack |
void |
push(SceneElement element)
Method to add an element to the stack |
int |
size()
Method to return the number of elements in the stack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PictureStack()
Method Detail |
---|
public void push(SceneElement element)
element
- the element to addpublic SceneElement peek()
public SceneElement pop()
public int size()
public boolean isEmpty()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |