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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidfocus()voidinitializeModel(org.w3c.dom.svg.SVGDocument svgDoc) booleanChecks to see if simulation is running.protected URIstatic voidvoidvoidpaused()Invoked when the current run has been paused.voidvoidvoidInvoked when the current run has been restarted after a pause.voidstarted()Invoked when the current run has been started.voidstopped()Invoked when the current run has been stopped.voidupdate()
-
Constructor Details
-
StateChartSVGDisplayController
-
-
Method Details
-
locateSVGResource
-
createAndShowDisplay
public void createAndShowDisplay() -
focus
public void focus() -
main
- Parameters:
args-
-
update
public void update()- Specified by:
updatein 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:RunListenerInvoked when the current run has been stopped.- Specified by:
stoppedin interfaceRunListener
-
paused
public void paused()Description copied from interface:RunListenerInvoked when the current run has been paused.- Specified by:
pausedin interfaceRunListener
-
started
public void started()Description copied from interface:RunListenerInvoked when the current run has been started.- Specified by:
startedin interfaceRunListener
-
restarted
public void restarted()Description copied from interface:RunListenerInvoked when the current run has been restarted after a pause.- Specified by:
restartedin interfaceRunListener
-