Class StateChartSVGDisplayController
java.lang.Object
repast.simphony.statecharts.runtime.StateChartSVGDisplayController
- All Implemented Interfaces:
RunListener
,StateChartListener
public class StateChartSVGDisplayController
extends Object
implements StateChartListener, RunListener
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
focus()
void
initializeModel
(org.w3c.dom.svg.SVGDocument svgDoc) boolean
Checks to see if simulation is running.protected URI
static void
void
void
paused()
Invoked when the current run has been paused.void
void
void
Invoked when the current run has been restarted after a pause.void
started()
Invoked when the current run has been started.void
stopped()
Invoked when the current run has been stopped.void
update()
-
Constructor Details
-
StateChartSVGDisplayController
-
-
Method Details
-
locateSVGResource
-
createAndShowDisplay
public void createAndShowDisplay() -
focus
public void focus() -
main
- Parameters:
args
-
-
update
public void update()- Specified by:
update
in interfaceStateChartListener
-
initializeModel
public void initializeModel(org.w3c.dom.svg.SVGDocument svgDoc) -
addAsStateChartListener
public void addAsStateChartListener() -
removeAsStateChartListener
public void removeAsStateChartListener() -
registerCloseListener
-
notifyCloseListeners
public void notifyCloseListeners() -
closeDisplayWithoutNotification
public void closeDisplayWithoutNotification() -
isRunning
public boolean isRunning()Checks to see if simulation is running.- Returns:
-
stopped
public void stopped()Description copied from interface:RunListener
Invoked when the current run has been stopped.- Specified by:
stopped
in interfaceRunListener
-
paused
public void paused()Description copied from interface:RunListener
Invoked when the current run has been paused.- Specified by:
paused
in interfaceRunListener
-
started
public void started()Description copied from interface:RunListener
Invoked when the current run has been started.- Specified by:
started
in interfaceRunListener
-
restarted
public void restarted()Description copied from interface:RunListener
Invoked when the current run has been restarted after a pause.- Specified by:
restarted
in interfaceRunListener
-