|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrcssjava.monitor.Monitor
public class Monitor
Graphical visualization of the world state
Constructor Summary | |
---|---|
Monitor()
Construct monitor with default listener and parameters |
|
Monitor(MonitorParams MP)
Construct monitor with default listener and server parameters but with the monitor parameters specified |
|
Monitor(MonitorParams MP,
ServerParams SP)
Construct monitor with the given parameters and the default listener |
|
Monitor(MonitorParams MP,
ServerParams SP,
MonitorListener listener)
Construct monitor with everything specified |
Method Summary | |
---|---|
void |
quit()
Terminate monitor |
void |
repaint()
Refresh the display using the previously specified world state, if any. |
void |
update(WorldState ws)
Update visualization to display given world state. |
void |
update(WorldState ws,
java.util.Vector<FieldShape> shapes)
Update visualization to display given world state as well as some additional graphics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Monitor()
public Monitor(MonitorParams MP)
MP
- monitor parameterspublic Monitor(MonitorParams MP, ServerParams SP)
MP
- monitor parametersSP
- server parameterspublic Monitor(MonitorParams MP, ServerParams SP, MonitorListener listener)
MP
- monitor parametersSP
- server parameterslistener
- class the listens to user input from mouse or keyboardMethod Detail |
---|
public void update(WorldState ws)
public void update(WorldState ws, java.util.Vector<FieldShape> shapes)
public void repaint()
public void quit()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |