|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.runtime.Runner
org.ascape.runtime.swing.SwingRunner
public class SwingRunner
Manages model runs in a Swing UI environment.
Field Summary |
---|
Fields inherited from class org.ascape.runtime.Runner |
---|
environment |
Constructor Summary | |
---|---|
SwingRunner()
|
Method Summary | |
---|---|
void |
closeAndOpenSavedFinally(Scape oldScape)
Requests the scape to open a saved run, closing the existing one. |
static void |
main(java.lang.String[] args)
Creates, initializes and runs the model specified in the argument. |
void |
notify(ScapeEvent event,
ScapeListener listener)
|
void |
openImplementation(java.lang.Object applet,
java.lang.String[] args,
boolean block)
Method neccessary because of amibiguous null values in simpler signature methods. |
void |
saveChoose()
Save the state of the scape to a file. |
void |
write(java.io.ObjectOutputStream out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SwingRunner()
Method Detail |
---|
public static void main(java.lang.String[] args)
public MyModel extends Model {
public static void main(String[] args) {
(open("mypath.MyModel")).start();
}
}
Otherwise, assuming your classpath is set up correctly, to invoke
a model from the command line type:
java org.ascape.model.Scape mypath.myModel
args
- at index 0; the name of the subclass of this class to runpublic void openImplementation(java.lang.Object applet, java.lang.String[] args, boolean block)
Runner
openImplementation
in class Runner
public void saveChoose()
saveChoose
in class Runner
public void closeAndOpenSavedFinally(Scape oldScape)
closeAndOpenSavedFinally
in class Runner
public void notify(ScapeEvent event, ScapeListener listener)
notify
in class Runner
public void write(java.io.ObjectOutputStream out) throws java.io.IOException
write
in class Runner
java.io.IOException
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |