|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.brook.ascape.view.NonGraphicView
A base class for most non-gui observer of scapes. Provides notification of scape updates.
| Field Summary | |
protected java.lang.String |
name
The name of the view. |
protected Scape |
scape
The scape this view is observing. |
| Constructor Summary | |
NonGraphicView()
|
|
| Method Summary | |
void |
addScape(Scape scape)
Add a scape to the view. |
java.lang.String |
getName()
Returns a name for the view as defined by set name. |
Scape |
getScape()
Returns the scape being viewed. |
void |
NonGraphicView()
Constructs a non-grahpic view. |
void |
NonGraphicView(java.lang.String name)
Constructs a non-grahpic view. |
void |
onClose()
Method called when the model is closed. |
void |
onIterate()
Called when scape is iterated. |
void |
onSetup()
Method called when the scape is ready for setup. |
void |
onStart()
Method called when the scape is started. |
void |
onStop()
Method called when the scape is stopped. |
void |
onUpdate()
Method called each time the scape is updated. |
void |
removeScape(Scape scape)
Removes the scape from this listener. |
void |
scapeUpdated(ScapeEvent scapeEvent)
Notifies this view that its scape has been updated. |
void |
setName(java.lang.String name)
Sets the name of this view. |
java.lang.String |
toString()
Returns a short description of this view. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
protected Scape scape
protected java.lang.String name
| Constructor Detail |
public NonGraphicView()
| Method Detail |
public void NonGraphicView()
public void NonGraphicView(java.lang.String name)
name - a user relevant name for this viewpublic Scape getScape()
public void addScape(Scape scape)
throws java.util.TooManyListenersException
scape - the scape to make this view the observer ofpublic void removeScape(Scape scape)
scape - the scape to removepublic void onIterate()
public void onSetup()
public void onUpdate()
public void onStart()
public void onStop()
public void onClose()
public void scapeUpdated(ScapeEvent scapeEvent)
scapeEvent - a scape event update, usually unspecifiedpublic java.lang.String getName()
public final void setName(java.lang.String name)
name - a user relevant name for this viewpublic java.lang.String toString()
|
(c) 1998-2000 The Brookings Insitution Webpage |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||