Package repast.simphony.visualization
Class DisplayListenerSupport
- java.lang.Object
-
- repast.simphony.visualization.DisplayListenerSupport
-
public class DisplayListenerSupport extends Object
Utility class for handling the broadcast of display events.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description DisplayListenerSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDisplayListener(DisplayListener listener)
Adds a display listener to the list of listeners to broadcast display events to.void
fireInfoMessage(DisplayEvent evt)
Broadcast a info message display event.void
fireInfoMessage(IDisplay source, String message)
Broadcast a info message display event consisting of the specified source and the specified message.
-
-
-
Method Detail
-
addDisplayListener
public void addDisplayListener(DisplayListener listener)
Adds a display listener to the list of listeners to broadcast display events to.- Parameters:
listener
- the listener to add
-
fireInfoMessage
public void fireInfoMessage(IDisplay source, String message)
Broadcast a info message display event consisting of the specified source and the specified message.- Parameters:
source
- the source of the eventmessage
- the message to broadcast
-
fireInfoMessage
public void fireInfoMessage(DisplayEvent evt)
Broadcast a info message display event.- Parameters:
evt
- the display event to broacast
-
-