|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ShapeList | +--ShapeStack
Constructor Summary | |
ShapeStack()
ShapeStack contructor |
Method Summary | |
boolean |
isEmpty()
Is the stack empty? |
boolean |
isFull()
Is the stack full? |
Shape |
pop()
Remove a shape at back |
void |
printStack(java.awt.Frame f)
Print the list |
void |
push(Shape o)
Insert a shape at back |
Methods inherited from class ShapeList |
getHead, insertBack, insertFront, printList, removeBack, removeFront |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShapeStack()
Method Detail |
public void push(Shape o)
o
- shape to insertpublic Shape pop()
public boolean isEmpty()
isEmpty
in class ShapeList
public boolean isFull()
isFull
in class ShapeList
public void printStack(java.awt.Frame f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |