LiveGraph
data visualisation and analysis framework

org.LiveGraph.gui
Class GUIManager

java.lang.Object
  extended by org.LiveGraph.gui.GUIManager
All Implemented Interfaces:
EventProducer

public class GUIManager
extends java.lang.Object
implements EventProducer


Field Summary
private  DataCache dataCache
          The data cache that is used to provide data series information to new panels and also when constructing new Plotter objects required for creating new PlotPanels.
 
Constructor Summary
GUIManager()
          Constructor doesn't do much.
 
Method Summary
 javax.swing.JPanel createDataFileSettingsPanel()
           
 javax.swing.JFrame createDataFileSettingsWindow()
          Create a data file settings window and set-up its communication with other objects.
 javax.swing.JPanel createGraphSettingsPanel()
           
 javax.swing.JFrame createGraphSettingsWindow()
          Create a graph settings window and set-up its communication with other objects.
 javax.swing.JMenuBar createMainMenuBar()
          Creates a new fully registered instance of a main menu bar.
 javax.swing.JPanel createMessagePanel()
           
 javax.swing.JFrame createMessageWindow()
          Create a message window and set-up its communication with other objects.
 javax.swing.JPanel createPlotPanel()
           
 javax.swing.JFrame createPlotWindow()
          Create a plot window and set-up its communication with other objects.
 javax.swing.JPanel createSeriesSettingsPanel()
           
 javax.swing.JFrame createSeriesSettingsWindow()
          Create a data series settings window and set-up its communication with other objects.
 void dataSeriesHighlighted(java.util.List<java.lang.Integer> hlSeries)
          Notifies the listeners about the highlighted series.
 void disposeAllGUI()
          Raises an event that requests all listening GUI components to call their dispose() methods.
 boolean eventProcessingException(Event<? extends EventType> event, EventProcessingException exception)
          ...
 void eventProcessingFinished(Event<? extends EventType> event)
          ...
 boolean guiEventProcessingException(Event<GUIEvent> event, EventProcessingException exception)
           
 void guiEventProcessingFinished(Event<GUIEvent> event)
          ...
 void logErrorLn(java.lang.Object o)
          Raises an event to inform listeners that an error message should be displayed.
 void logErrorLnModal(java.lang.Object o)
           
private  void logErrorLnModal2(java.lang.Object o, java.lang.Throwable ex)
           
 void logInfoLn(java.lang.Object o)
          Raises an event to inform listeners that an info message should be displayed.
 void logSuccessLn(java.lang.Object o)
          Raises an event to inform listeners that a success message should be displayed.
 void setDataCache(DataCache cache)
          Sets tha data cache that is used to provide data series information to new panels and also when constructing new Plotter objects required for creating new PlotPanels.
 void setDisplayDataFileSettingsWindows(boolean state)
          Displays or hides the data file settings window.
 void setDisplayGraphSettingsWindows(boolean state)
          Displays or hides the graph settings window.
 void setDisplayMessageWindows(boolean state)
          Displays or hides the message window.
 void setDisplayPlotWindows(boolean state)
          Displays or hides the plot window.
 void setDisplaySeriesSettingsWindows(boolean state)
          Displays or hides the data series settings window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataCache

private DataCache dataCache
The data cache that is used to provide data series information to new panels and also when constructing new Plotter objects required for creating new PlotPanels.

Constructor Detail

GUIManager

public GUIManager()
Constructor doesn't do much.

Method Detail

setDataCache

public void setDataCache(DataCache cache)
Sets tha data cache that is used to provide data series information to new panels and also when constructing new Plotter objects required for creating new PlotPanels.

Parameters:
cache -

createMainMenuBar

public javax.swing.JMenuBar createMainMenuBar()
Creates a new fully registered instance of a main menu bar.

Returns:
a new main menu bar.

createDataFileSettingsPanel

public javax.swing.JPanel createDataFileSettingsPanel()

createGraphSettingsPanel

public javax.swing.JPanel createGraphSettingsPanel()

createSeriesSettingsPanel

public javax.swing.JPanel createSeriesSettingsPanel()

createMessagePanel

public javax.swing.JPanel createMessagePanel()

createPlotPanel

public javax.swing.JPanel createPlotPanel()

createDataFileSettingsWindow

public javax.swing.JFrame createDataFileSettingsWindow()
Create a data file settings window and set-up its communication with other objects.

Returns:
data file settings window.

createGraphSettingsWindow

public javax.swing.JFrame createGraphSettingsWindow()
Create a graph settings window and set-up its communication with other objects.

Returns:
graph settings window.

createSeriesSettingsWindow

public javax.swing.JFrame createSeriesSettingsWindow()
Create a data series settings window and set-up its communication with other objects.

Returns:
data series settings window.

createMessageWindow

public javax.swing.JFrame createMessageWindow()
Create a message window and set-up its communication with other objects.

Returns:
data series settings window.

createPlotWindow

public javax.swing.JFrame createPlotWindow()
Create a plot window and set-up its communication with other objects.

Returns:
plot window.

setDisplayMessageWindows

public void setDisplayMessageWindows(boolean state)
Displays or hides the message window.

Parameters:
state - Whether to display (true) or to hide (false).

setDisplayDataFileSettingsWindows

public void setDisplayDataFileSettingsWindows(boolean state)
Displays or hides the data file settings window.

Parameters:
state - Whether to display (true) or to hide (false).

setDisplayGraphSettingsWindows

public void setDisplayGraphSettingsWindows(boolean state)
Displays or hides the graph settings window.

Parameters:
state - Whether to display (true) or to hide (false).

setDisplaySeriesSettingsWindows

public void setDisplaySeriesSettingsWindows(boolean state)
Displays or hides the data series settings window.

Parameters:
state - Whether to display (true) or to hide (false).

setDisplayPlotWindows

public void setDisplayPlotWindows(boolean state)
Displays or hides the plot window.

Parameters:
state - Whether to display (true) or to hide (false).

logInfoLn

public void logInfoLn(java.lang.Object o)
Raises an event to inform listeners that an info message should be displayed.

Parameters:
o - The message.

logErrorLn

public void logErrorLn(java.lang.Object o)
Raises an event to inform listeners that an error message should be displayed.

Parameters:
o - The message.

logErrorLnModal

public void logErrorLnModal(java.lang.Object o)

logErrorLnModal2

private void logErrorLnModal2(java.lang.Object o,
                              java.lang.Throwable ex)

logSuccessLn

public void logSuccessLn(java.lang.Object o)
Raises an event to inform listeners that a success message should be displayed.

Parameters:
o - The message.

dataSeriesHighlighted

public void dataSeriesHighlighted(java.util.List<java.lang.Integer> hlSeries)
Notifies the listeners about the highlighted series.

Parameters:
hlSeries - highlighted series indices.

disposeAllGUI

public void disposeAllGUI()
Raises an event that requests all listening GUI components to call their dispose() methods.


eventProcessingFinished

public void eventProcessingFinished(Event<? extends EventType> event)
...

Specified by:
eventProcessingFinished in interface EventProducer
Parameters:
event - ... .

guiEventProcessingFinished

public void guiEventProcessingFinished(Event<GUIEvent> event)
...

Parameters:
event - ... .

eventProcessingException

public boolean eventProcessingException(Event<? extends EventType> event,
                                        EventProcessingException exception)
...

Specified by:
eventProcessingException in interface EventProducer
Parameters:
event - ...
exception - ...
Returns:
...

guiEventProcessingException

public boolean guiEventProcessingException(Event<GUIEvent> event,
                                           EventProcessingException exception)

LiveGraph
data visualisation and analysis framework
LiveGraph is a member of SourceForge.net Donate to LiveGraph