uchicago.src.sim.gui
Class ViewEvent
java.lang.Object
java.util.EventObject
uchicago.src.sim.gui.ViewEvent
- All Implemented Interfaces:
- java.io.Serializable
public class ViewEvent
- extends java.util.EventObject
A semantic event that indicates what kind of display event occured. A
DisplaySurface queries a displayable for its DisplayInfo and and uses
this info to setup the view menu. This menu will send ViewEvents
to Displayables with an id indicating what kind of event occured.
- Version:
- $Revision: 1.3 $ $Date: 2004/11/03 19:50:59 $
- Author:
- Nick Collier
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
ViewEvent(java.lang.Object source,
int id,
boolean showView)
Creates a new ViewEvent with the specified source, id, and whether
this event indicates to show the view specified by the id. |
|
Method Summary |
int |
getId()
Get the id of this event |
boolean |
showView()
Is this a show view event. |
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ViewEvent
public ViewEvent(java.lang.Object source,
int id,
boolean showView)
- Creates a new ViewEvent with the specified source, id, and whether
this event indicates to show the view specified by the id.
- Parameters:
source - the source of the eventid - the id of the eventshowView - whether this is a show view event
getId
public int getId()
- Get the id of this event
showView
public boolean showView()
- Is this a show view event.
- Returns:
- true if this is a show view event, otherwise false.