Class Framework

java.lang.Object
   |
   +----Framework

class Framework
extends Object
The main class of the framework. This class contains data that is global to the framework. It also contains the main() method.

Version:
$Revision: 1.23 $

Variable Index

 o dataVisualisations
The DataVisualisation objects for all Data objects that are currently being displayed.
 o fontSelector
The FontSelector object that is used to get Font definitions from the Framework properties.
 o helpTexts
The HelpTexts object that is used to store the help texts.
 o messagesDialog
This dialog is used for displaying messages to the user to inform him or her about `global' events: events that have something to do with the framework, the current network or an action of the user (for example, a file could not be found when running the network, the network could not be saved, or an invalid run path is created).
 o properties
The properties of the Framework, as loaded by loadProperties().
 o propertiesChanged
Indicates if the properties have changed since the last load or save.

Constructor Index

 o Framework()

Method Index

 o ()
 o addDataVisualisations(DataVisualisationStore)
Adds instances of classes that implement the DataVisualisation interface to this Framework's list DataVisualisations of currently "displayed" Data classes.
 o addGraphicalView(Network)
 o closeDataVisualisations()
Closes all DataVisualisations for the Data classes that are currently being displayed.
 o getFontSelector()
 o getHelpTexts()
 o getMessagesDialog()
 o getProperties()
 o loadProperties()
Load the general settings (directories) of the framework.
 o main(String[])
The main method of the program.
 o newModuleMessagesDialog()
Creates a new MessagesDialog for a module to display its module-messages.
 o saveProperties()
Save the general setting of the framework.
 o setMessagesDialog(MessagesDialog)
Set the message dialog for global messages.
 o updateProperty(String, String)

Variables

 o messagesDialog
 private static MessagesDialog messagesDialog
This dialog is used for displaying messages to the user to inform him or her about `global' events: events that have something to do with the framework, the current network or an action of the user (for example, a file could not be found when running the network, the network could not be saved, or an invalid run path is created). Messages about the execution of a module should be displayed in the module's local message display.

 o properties
 private static Properties properties
The properties of the Framework, as loaded by loadProperties().

See Also:
loadProperties
 o propertiesChanged
 private static boolean propertiesChanged
Indicates if the properties have changed since the last load or save.

 o helpTexts
 private static HelpTexts helpTexts
The HelpTexts object that is used to store the help texts.

See Also:
getHelpTexts
 o fontSelector
 private static FontSelector fontSelector
The FontSelector object that is used to get Font definitions from the Framework properties.

See Also:
getFontSelector
 o dataVisualisations
 private static DataVisualisationStore dataVisualisations
The DataVisualisation objects for all Data objects that are currently being displayed.

See Also:
addDataVisualisations

Constructors

 o Framework
 Framework()

Methods

 o setMessagesDialog
 static void setMessagesDialog(MessagesDialog d)
Set the message dialog for global messages.

 o getMessagesDialog
 static MessagesDialog getMessagesDialog()
 o newModuleMessagesDialog
 static MessagesDialog newModuleMessagesDialog()
Creates a new MessagesDialog for a module to display its module-messages. For the moment, no new dialogs are created, but the global messages dialog is used.

 o getHelpTexts
 static HelpTexts getHelpTexts()
Returns:
an instance of HelpTexts that contains the help texts for the Framework, or at least it knows how to load the texts.
 o getFontSelector
 static FontSelector getFontSelector()
Returns:
an instance of FontSelector that can be used to get Font definitions from the Framework properties.
 o saveProperties
 private static void saveProperties()
Save the general setting of the framework.

 o loadProperties
 private static void loadProperties()
Load the general settings (directories) of the framework.

 o getProperties
 static Properties getProperties()
 o updateProperty
 static void updateProperty(String key,
                            String value)
 o addGraphicalView
 static void addGraphicalView(Network n)
 o addDataVisualisations
 static void addDataVisualisations(DataVisualisationStore store)
Adds instances of classes that implement the DataVisualisation interface to this Framework's list DataVisualisations of currently "displayed" Data classes.

See Also:
DataVisualisation
 o closeDataVisualisations
 static void closeDataVisualisations()
Closes all DataVisualisations for the Data classes that are currently being displayed.

See Also:
addDataVisualisations
 o main
 public static void main(String args[])
The main method of the program. It creates the initial model (a Network) and starts the views and a message window, and from there on the user takes over. The main method then waits for the user interface to close. NYI: Creating the views should be done better. Now it's still done in the pre-MVC way.

 o
 static void ()