|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface View
A base interface for the graphical user interface of a simulation
Method Summary | |
---|---|
void |
blockVariable(java.lang.String variable)
Protects a view variable from being updated |
void |
clearMessages()
Clears all text from the control's message area. |
void |
collectData()
Accept data sent but do not graphic work |
void |
finalUpdate()
Does the final update which makes the drawing complete. |
java.awt.Component |
getComponent(java.lang.String _name)
Get a graphical object |
ControlElement |
getElement(java.lang.String _name)
Get a ControlElement by name |
java.util.Vector<ControlElement> |
getElements()
Get the Vector elementList of the simualtion controls |
void |
initialize()
A softer reset. |
void |
onExit()
Clean-up when you exit |
void |
print(java.lang.String s)
Prints a string in the control's message area. |
void |
println()
Prints a blank line in the control's message area. |
void |
println(java.lang.String s)
Prints a string in the control's message area followed by a CR and LF. |
void |
read()
Read current data |
void |
read(java.lang.String _variable)
Read a single variable |
void |
reset()
Clearing any previous data |
void |
setUpdateSimulation(boolean _value)
Whether the view must inform any simulation to update whenever it changes because of user interaction |
void |
update()
Accept data sent and display it |
Method Detail |
---|
void reset()
void initialize()
void read()
void read(java.lang.String _variable)
void update()
void finalUpdate()
void collectData()
void onExit()
void setUpdateSimulation(boolean _value)
_value
- booleanjava.awt.Component getComponent(java.lang.String _name)
_name
- A keyword that identifies the graphical object that
must be retrieved. Typically its name.
ControlElement getElement(java.lang.String _name)
_name
- A keyword that identifies the control element that
must be retrieved. Typically its name.
void blockVariable(java.lang.String variable)
variable
- void println(java.lang.String s)
s
- void println()
void print(java.lang.String s)
s
- void clearMessages()
java.util.Vector<ControlElement> getElements()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |