Package repast.simphony.visualization
Class DisplayEvent
java.lang.Object
repast.simphony.visualization.DisplayEvent
A semantic event indicating that diplay event has occured
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDisplayEvent
(IDisplay source, Object subject) Creates a display event fired from the specified source and with the specified subject. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String name, Object prop) Adds a property to this DisplayEvent.getProperty
(String name) Gets the named propertyGets the source of the event.Gets the subject of the event.
-
Field Details
-
NULL_PROPERTY
-
TYPE
- See Also:
-
-
Constructor Details
-
DisplayEvent
Creates a display event fired from the specified source and with the specified subject.- Parameters:
source
- the source of the eventsubject
- the subject of the event
-
-
Method Details
-
getSubject
Gets the subject of the event.- Returns:
- the subject of the event.
-
addProperty
Adds a property to this DisplayEvent.- Parameters:
name
- the name of the propertyprop
- the property
-
getProperty
Gets the named property- Parameters:
name
- the name of the property to get- Returns:
- the named property or DisplayEvent.NULL_PROPERTY if no such property exists.
-
getSource
Gets the source of the event.- Returns:
- the source of the event.
-