uchicago.src.sim.gui
Class ViewEvent
java.lang.Object
|
+--java.util.EventObject
|
+--uchicago.src.sim.gui.ViewEvent
- All Implemented Interfaces:
- Serializable
- public class ViewEvent
- extends 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.
- See Also:
- Serialized Form
|
Constructor Summary |
ViewEvent(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. |
ViewEvent
public ViewEvent(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.
Bug reports and feature requests to RePast