thales.vergil
Class SingleWindowApplication
java.lang.Object
ptolemy.actor.gui.ConfigurationApplication
ptolemy.actor.gui.MoMLApplication
ptolemy.vergil.VergilApplication
thales.vergil.SingleWindowApplication
- All Implemented Interfaces:
- ExecutionListener
public class SingleWindowApplication
- extends VergilApplication
Main entry point for the SingleWindow mode.
- Since:
- Version:
- $Id: SingleWindowApplication.java 47482 2007-12-06 18:33:55Z cxh $
- Author:
- Jérôme Blanc & Benoit Masson, Thales Research and technology, 12 nov. 2003
- Accepted Rating:
- Proposed Rating:
Methods inherited from class ptolemy.actor.gui.ConfigurationApplication |
_configurationUsage, _configurationUsage, _openModel, _openModel, _parseArg, _printPDF, _readConfiguration, executionError, executionFinished, managerStateChanged, models, readConfiguration, runModels, specToURL, throwArgsException, waitForFinish |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_mainFrame
public static SingleWindowHTMLViewer _mainFrame
- The main frame.
SingleWindowApplication
public SingleWindowApplication(java.lang.String[] args)
throws java.lang.Exception
- Construct a single window application.
- Parameters:
args
- Arguments to pass to
VergilApplication.VergilApplication(String[])
.
- Throws:
java.lang.Exception
main
public static void main(java.lang.String[] args)
- Create a single window application.
- Parameters:
args
- Arguments to pass to
VergilApplication.VergilApplication(String[])
.
_createDefaultConfiguration
protected Configuration _createDefaultConfiguration()
throws java.lang.Exception
- Description copied from class:
VergilApplication
- Return a default Configuration. The initial default configuration
is the MoML file full/configuration.xml under the _basePath
directory, which is usually ptolemy/configs.
using different command line arguments can change the value
Usually, we also open the user library, which is located
in the directory returned by
StringUtilities.preferencesDirectory()
If the configuration contains a top level Parameter named
_hideUserLibrary, then we do not open the user library.
- Overrides:
_createDefaultConfiguration
in class VergilApplication
- Returns:
- A default configuration.
- Throws:
java.lang.Exception
- If the configuration cannot be opened.
_createEmptyConfiguration
protected Configuration _createEmptyConfiguration()
throws java.lang.Exception
- Description copied from class:
VergilApplication
- Return a default Configuration to use when there are no command-line
arguments. If the configuration contains a parameter
_applicationBlankPtolemyEffigyAtStartup
then we create an empty up an empty PtolemyEffigy.
- Overrides:
_createEmptyConfiguration
in class VergilApplication
- Returns:
- A configuration for when there no command-line arguments.
- Throws:
java.lang.Exception
- If the configuration cannot be opened.