Package repast.simphony.visualization
Class DisplayEvent
- java.lang.Object
-
- repast.simphony.visualization.DisplayEvent
-
public class DisplayEvent extends Object
A semantic event indicating that diplay event has occured- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Field Summary
Fields Modifier and Type Field Description static Object
NULL_PROPERTY
static String
TYPE
-
Constructor Summary
Constructors Constructor Description DisplayEvent(IDisplay source, Object subject)
Creates a display event fired from the specified source and with the specified subject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String name, Object prop)
Adds a property to this DisplayEvent.Object
getProperty(String name)
Gets the named propertyIDisplay
getSource()
Gets the source of the event.Object
getSubject()
Gets the subject of the event.
-
-
-
Field Detail
-
NULL_PROPERTY
public static final Object NULL_PROPERTY
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSubject
public Object getSubject()
Gets the subject of the event.- Returns:
- the subject of the event.
-
addProperty
public void addProperty(String name, Object prop)
Adds a property to this DisplayEvent.- Parameters:
name
- the name of the propertyprop
- the property
-
getProperty
public Object getProperty(String name)
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
public IDisplay getSource()
Gets the source of the event.- Returns:
- the source of the event.
-
-