|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsupport.queue.QueueVisualizer
public class QueueVisualizer
| Field Summary |
|---|
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
QueueVisualizer()
|
|
| Method Summary | |
|---|---|
void |
addPaneLabel(JPanel pane,
String lab)
|
void |
buildQueue()
Visualizes the queue by shattering encapsulation, using the dataobject to access your private array that stores all the information for your queue. |
void |
buildSnapshot(Object elem)
Visualizes the current elements in the snapshot iterator. |
void |
catchError(String method,
Exception e)
Method used to display error messages that get caught while executing methods in the queue. |
void |
createBox(int boxType,
String lab,
int left,
boolean iter)
Visualizes the elements for the queue or iterator. |
Component |
createComponents()
Creates the components for visualizing the queue. |
Component |
createIterator()
Creates the iterator panel with manipulation buttons. |
Component |
createOptions()
Creates the queue manipulating buttons. |
Component |
createQuit()
|
Component |
createWriter()
Creates the components for visualizing results of queue manipulations. |
void |
dequeue()
|
void |
displayEvent()
|
void |
displayResult()
|
void |
elements()
|
void |
enqueue(Object elem)
Queue methods. |
void |
front()
|
int |
getNextLeft()
|
void |
hasNext()
|
void |
init()
|
void |
isEmpty()
|
static void |
main(String[] args)
|
void |
nextObject()
|
void |
object()
|
void |
reset()
Iterator methods. |
void |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueueVisualizer()
| Method Detail |
|---|
public Component createIterator()
public Component createComponents()
public Component createWriter()
public Component createOptions()
public Component createQuit()
public void init()
public void enqueue(Object elem)
public void dequeue()
public void isEmpty()
public void front()
public void size()
public void elements()
public void reset()
public void hasNext()
public void object()
public void nextObject()
public void catchError(String method,
Exception e)
public void displayEvent()
public void displayResult()
public void buildSnapshot(Object elem)
public void buildQueue()
throws Exception
Exception
public void addPaneLabel(JPanel pane,
String lab)
public int getNextLeft()
public void createBox(int boxType,
String lab,
int left,
boolean iter)
public static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||