|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LiveGraph.LiveGraph
public class LiveGraph
This is the main executable class of the LiveGraph plotter application. An instance of this class represents the application itself. The tasks of this class is to interpret the command line parameters, to set-up and to start-up the GUI and the back-end of the application, and to provide some functions which are used by different modules of the application to communicate with each other and to access global data, such as settings.
This product includes software developed by the
LiveGraph project and its contributors.
(http://www.live-graph.org)
Copyright (c) 2007-2008 G. Paperin.
All rights reserved.
File: LiveGraph.java
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following terms and conditions are met:
1. Redistributions of source code must retain the above
acknowledgement of the LiveGraph project and its web-site, the above copyright notice,
this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above acknowledgement of the
LiveGraph project and its web-site, the above copyright notice, this list of conditions
and the following disclaimer in the documentation and/or other materials provided with
the distribution.
3. All advertising materials mentioning features or use of this software or any derived
software must display the following acknowledgement:
This product includes software developed by the LiveGraph project and its
contributors.
(http://www.live-graph.org)
4. All advertising materials distributed in form of HTML pages or any other technology
permitting active hyper-links that mention features or use of this software or any
derived software must display the acknowledgment specified in condition 3 of this
agreement, and in addition, include a visible and working hyper-link to the LiveGraph
homepage (http://www.live-graph.org).
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS, CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Nested Class Summary | |
---|---|
private class |
LiveGraph.TidyUpAfterEventManagerShutDown
|
private class |
LiveGraph.UncaughtExceptionHandler
|
Field Summary | |
---|---|
private static LiveGraph |
app
Singleton application instance. |
private java.lang.Thread.UncaughtExceptionHandler |
commonDefaultUncaughtExceptionHandler
|
private DataCache |
dataCache
|
private DataFileSettings |
dataFileSettings
Holds the data file settings for the application. |
private EventManager |
eventManager
|
private GraphExporter |
graphExporter
Holds the graph exporter. |
private GraphSettings |
graphSettings
Holds the graph settings for the application. |
private GUIManager |
guiManager
|
private boolean |
initialised
|
private DataSeriesSettings |
seriesSettings
Holds the data series settings for the application. |
private boolean |
standAlone
|
private UpdateInvoker |
updateInvoker
Application's data update invoker. |
private UpgradeManager |
upgradeManager
|
static java.lang.String |
version
LiveGraph software version. |
Constructor Summary | |
---|---|
LiveGraph()
|
Method Summary | |
---|---|
static LiveGraph |
application()
Singleton application access method. |
void |
disposeGUIAndExit()
This method is called by the main window when it is closed. |
EventManager |
eventManager()
Gets the applications' global event manager. |
void |
execEngine()
|
void |
execStandalone()
|
void |
execStandalone(CommandLineProcessor cmdLn)
|
void |
execStandalone(java.lang.String[] args)
Main program method. |
DataFileSettings |
getDataFileSettings()
Gets the application's global data file settings. |
DataSeriesSettings |
getDataSeriesSettings()
Gets the application's global data series settings. |
GraphExporter |
getGraphExporter()
Get the exporter that can be used to create image representations of LiveGraph plots. |
GraphSettings |
getGraphSettings()
Gets the application's global graph settings. |
java.lang.String |
getJavaSpecificationVersion()
Determines the current Java specification version. |
GUIManager |
guiManager()
Gets the applications' global gui manager. |
boolean |
initialised()
|
private void |
installUncaughtExceptionHandler()
Installs an uncaught exception handler that logs errors to the message window as well as to the colsole. |
static void |
main(java.lang.String[] args)
Program entry point. |
boolean |
runsCorrectJavaVersion()
Determines whether the currect Java version is appropriate. |
private void |
shutDown()
|
boolean |
standalone()
|
UpdateInvoker |
updateInvoker()
|
UpgradeManager |
upgradeManager()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
private static LiveGraph app
private EventManager eventManager
private GUIManager guiManager
private DataCache dataCache
private UpgradeManager upgradeManager
private boolean initialised
private boolean standAlone
private java.lang.Thread.UncaughtExceptionHandler commonDefaultUncaughtExceptionHandler
private UpdateInvoker updateInvoker
private DataFileSettings dataFileSettings
private GraphSettings graphSettings
private DataSeriesSettings seriesSettings
private GraphExporter graphExporter
Constructor Detail |
---|
public LiveGraph()
Method Detail |
---|
public static LiveGraph application()
public static void main(java.lang.String[] args)
execStandalone(String[])
method.
args
- Command line parameters.public void execStandalone()
public void execStandalone(java.lang.String[] args)
args
- Command line arguments.public void execStandalone(CommandLineProcessor cmdLn)
public void execEngine()
public java.lang.String getJavaSpecificationVersion()
"unknown"
if it could not be obtained.public boolean runsCorrectJavaVersion()
java.specification.version
. Java version 1.6
or higher is considered ok.
public void disposeGUIAndExit()
private void shutDown()
public EventManager eventManager()
public GUIManager guiManager()
public UpdateInvoker updateInvoker()
public UpgradeManager upgradeManager()
public boolean standalone()
public boolean initialised()
public DataFileSettings getDataFileSettings()
public GraphSettings getGraphSettings()
public DataSeriesSettings getDataSeriesSettings()
public GraphExporter getGraphExporter()
private void installUncaughtExceptionHandler()
|
LiveGraph data visualisation and analysis framework |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |