fr.inria.oadymppac.panel
Class ApplicationPanelFactory

java.lang.Object
  extended byfr.inria.oadymppac.panel.ApplicationPanelFactory
All Implemented Interfaces:
PanelFactory

public class ApplicationPanelFactory
extends java.lang.Object
implements PanelFactory

A concrete implementation of an Application Panel Factory

Author:
raf

Constructor Summary
ApplicationPanelFactory(Properties properties)
           
 
Method Summary
 void buildAboutPanel()
          Display the about panel
 int buildAnalysisSelector()
          Display a selector of analysers
 void buildErrorPanel(java.lang.Error e)
          Build an Error Message box using an Error
 void buildErrorPanel(java.lang.Exception e)
          Build an Error Message box using an Exception
 javax.swing.JFileChooser buildFileSelector()
          Display a file chooser
 javax.swing.JFrame buildMainFrame()
          Build the main Frame of the application
 void buildMessagePanel(java.lang.String message)
          Display a message in a message box
 int buildQuestionPanel(java.lang.String question)
          Display a Question in a Message box
 javax.swing.JComponent buildSplashScreen()
          Display a splash panel
 infovis.Visualization buildVisualization(infovis.Graph graph)
          Build a new visualization (INFOVIS) from a Graph
 javax.swing.JFileChooser getFileChooser()
           
 javax.swing.JComponent getSplashScreen()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationPanelFactory

public ApplicationPanelFactory(Properties properties)
Method Detail

buildErrorPanel

public void buildErrorPanel(java.lang.Exception e)
Build an Error Message box using an Exception

Specified by:
buildErrorPanel in interface PanelFactory
See Also:
PanelFactory.buildErrorPanel(java.lang.Exception)

buildErrorPanel

public void buildErrorPanel(java.lang.Error e)
Build an Error Message box using an Error

Specified by:
buildErrorPanel in interface PanelFactory
See Also:
PanelFactory.buildErrorPanel(java.lang.Error)

buildMessagePanel

public void buildMessagePanel(java.lang.String message)
Display a message in a message box

Specified by:
buildMessagePanel in interface PanelFactory
See Also:
PanelFactory.buildErrorPanel(java.lang.Exception)

buildAboutPanel

public void buildAboutPanel()
Display the about panel

Specified by:
buildAboutPanel in interface PanelFactory
See Also:
PanelFactory.buildErrorPanel(java.lang.Exception)

buildFileSelector

public javax.swing.JFileChooser buildFileSelector()
Display a file chooser

Specified by:
buildFileSelector in interface PanelFactory
See Also:
PanelFactory.buildFileSelector()

buildSplashScreen

public javax.swing.JComponent buildSplashScreen()
Display a splash panel

Specified by:
buildSplashScreen in interface PanelFactory
See Also:
PanelFactory.buildSplashScreen()

buildAnalysisSelector

public int buildAnalysisSelector()
Display a selector of analysers

Returns:
The cancel or OK user selection

buildQuestionPanel

public int buildQuestionPanel(java.lang.String question)
Display a Question in a Message box

Specified by:
buildQuestionPanel in interface PanelFactory
See Also:
PanelFactory.buildQuestionPanel(java.lang.String)

buildVisualization

public infovis.Visualization buildVisualization(infovis.Graph graph)
Build a new visualization (INFOVIS) from a Graph

Parameters:
graph -
Returns:
the visualization created

getFileChooser

public javax.swing.JFileChooser getFileChooser()
Returns:
Returns the fileChooser.

getSplashScreen

public javax.swing.JComponent getSplashScreen()
Returns:
Returns the splashScreen.

buildMainFrame

public javax.swing.JFrame buildMainFrame()
Build the main Frame of the application

Specified by:
buildMainFrame in interface PanelFactory
See Also:
PanelFactory.buildMainFrame()