infovis.panel
Class MainFrameDecorator

java.lang.Object
  extended by infovis.panel.MainFrameDecorator
All Implemented Interfaces:
ActionListener, EventListener

public class MainFrameDecorator
extends Object
implements ActionListener

Component to create a visualization program as simply as possible.

Version:
$Revision: 1.52 $
Author:
Jean-Daniel Fekete

Constructor Summary
MainFrameDecorator(JFrame frame)
          Creates a new MainFrameDecorator object.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void addVisualizationMenu(VisualizationFactory.Creator creator, int i)
           
 Visualization createControls(String name, Visualization visualization)
          Create the control panel associated with a specified visualization with a name
 JMenu createFileMenu()
          Creates the file menu.
 GraphVisualization createGraphVisualization(String name, Graph graph)
          DOCUMENT ME!
 JMenu createHelpMenu()
          Creates the help menu.
 void createImage()
           
 void createImage(File file, float scale)
           
 JComponent createJTable(Table table)
           
static JSplitPane createScrollVisualization(ControlPanel cp)
           
 JComponent createSplashScreen()
          Create the splash screen.
 Visualization createTableVisualization(String name, Table table)
          DOCUMENT ME!
 TreeVisualization createTreeVisualization(String name, Tree tree)
          DOCUMENT ME!
 JMenu createViewMenu()
           
 void editTable()
           
static StringColumn getStringColumn(Table t, int index)
          DOCUMENT ME!
static void main(String[] args)
          Main program.
 String openFile(File file)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainFrameDecorator

public MainFrameDecorator(JFrame frame)
Creates a new MainFrameDecorator object.

Parameters:
frame - the JFrame to decorate.
Method Detail

createFileMenu

public JMenu createFileMenu()
Creates the file menu.

Returns:
the file menu.

createViewMenu

public JMenu createViewMenu()

createHelpMenu

public JMenu createHelpMenu()
Creates the help menu.

Returns:
the help menu.

createSplashScreen

public JComponent createSplashScreen()
Create the splash screen.

Returns:
the splash screen.

openFile

public String openFile(File file)
DOCUMENT ME!

Parameters:
file - DOCUMENT ME!
Returns:
DOCUMENT ME!

getStringColumn

public static StringColumn getStringColumn(Table t,
                                           int index)
DOCUMENT ME!

Parameters:
t - DOCUMENT ME!
index - DOCUMENT ME!
Returns:
DOCUMENT ME!

createScrollVisualization

public static JSplitPane createScrollVisualization(ControlPanel cp)

createControls

public Visualization createControls(String name,
                                    Visualization visualization)
Create the control panel associated with a specified visualization with a name

Parameters:
name - The name (file name) of the visualization
visualization - The Visualization
Returns:
the Visualization

addVisualizationMenu

public void addVisualizationMenu(VisualizationFactory.Creator creator,
                                 int i)

createGraphVisualization

public GraphVisualization createGraphVisualization(String name,
                                                   Graph graph)
DOCUMENT ME!

Parameters:
graph - DOCUMENT ME!
Returns:
DOCUMENT ME!

createTreeVisualization

public TreeVisualization createTreeVisualization(String name,
                                                 Tree tree)
DOCUMENT ME!

Parameters:
tree - DOCUMENT ME!
Returns:
DOCUMENT ME!

createTableVisualization

public Visualization createTableVisualization(String name,
                                              Table table)
DOCUMENT ME!

Parameters:
table - DOCUMENT ME!
Returns:
DOCUMENT ME!

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

createImage

public void createImage()

createImage

public void createImage(File file,
                        float scale)

createJTable

public JComponent createJTable(Table table)

editTable

public void editTable()

main

public static void main(String[] args)
Main program.

Parameters:
args - args.


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.