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 $
-
dataVisualisations
- The DataVisualisation objects for all Data objects that are currently
being displayed.
-
fontSelector
- The FontSelector object that is used to get Font definitions from the
Framework properties.
-
helpTexts
- The HelpTexts object that is used to store the help texts.
-
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).
-
properties
- The properties of the Framework, as loaded by loadProperties().
-
propertiesChanged
- Indicates if the properties have changed since the last load or save.
-
Framework()
-
-
()
-
-
addDataVisualisations(DataVisualisationStore)
- Adds instances of classes that implement the DataVisualisation
interface to this Framework's list DataVisualisations of currently
"displayed" Data classes.
-
addGraphicalView(Network)
-
-
closeDataVisualisations()
- Closes all DataVisualisations for the Data classes that are currently
being displayed.
-
getFontSelector()
-
-
getHelpTexts()
-
-
getMessagesDialog()
-
-
getProperties()
-
-
loadProperties()
- Load the general settings (directories) of the framework.
-
main(String[])
- The main method of the program.
-
newModuleMessagesDialog()
- Creates a new MessagesDialog for a module to display its
module-messages.
-
saveProperties()
- Save the general setting of the framework.
-
setMessagesDialog(MessagesDialog)
- Set the message dialog for global messages.
-
updateProperty(String, String)
-
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.
properties
private static Properties properties
- The properties of the Framework, as loaded by loadProperties().
- See Also:
- loadProperties
propertiesChanged
private static boolean propertiesChanged
- Indicates if the properties have changed since the last load or save.
helpTexts
private static HelpTexts helpTexts
- The HelpTexts object that is used to store the help texts.
- See Also:
- getHelpTexts
fontSelector
private static FontSelector fontSelector
- The FontSelector object that is used to get Font definitions from the
Framework properties.
- See Also:
- getFontSelector
dataVisualisations
private static DataVisualisationStore dataVisualisations
- The DataVisualisation objects for all Data objects that are currently
being displayed.
- See Also:
- addDataVisualisations
Framework
Framework()
setMessagesDialog
static void setMessagesDialog(MessagesDialog d)
- Set the message dialog for global messages.
getMessagesDialog
static MessagesDialog getMessagesDialog()
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.
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.
getFontSelector
static FontSelector getFontSelector()
- Returns:
- an instance of FontSelector that can be used to get Font
definitions from the Framework properties.
saveProperties
private static void saveProperties()
- Save the general setting of the framework.
loadProperties
private static void loadProperties()
- Load the general settings (directories) of the framework.
getProperties
static Properties getProperties()
updateProperty
static void updateProperty(String key,
String value)
addGraphicalView
static void addGraphicalView(Network n)
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
closeDataVisualisations
static void closeDataVisualisations()
- Closes all DataVisualisations for the Data classes that are currently
being displayed.
- See Also:
- addDataVisualisations
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.
static void ()