Cytoscape 2.2 (c) 2004 ISB, MSKCC, UCSD

cytoscape
Class CyMain

java.lang.Object
  extended bycytoscape.CyMain
All Implemented Interfaces:
EventListener, WindowListener

public class CyMain
extends Object
implements WindowListener

This is the main startup class for Cytoscape. It creates a CytoscapeConfig object using the command-line arguments, uses the information in that config to create other data objects, and then constructs the first CyWindow. Construction of that class triggers plugin loading, and after that control passes to the UI thread that responds to user input.

This class monitors the set of windows that exist and exits the application when the last window is closed.


Constructor Summary
CyMain(String[] args)
          Primary Method for Starting Cytoscape.
 
Method Summary
static void exit(int exitCode)
           
static void main(String[] args)
           
 void windowActivated(WindowEvent e)
           
 void windowClosed(WindowEvent e)
           
 void windowClosing(WindowEvent e)
          on linux (at least) a killed window generates a 'windowClosed' event; trap that here
 void windowDeactivated(WindowEvent e)
           
 void windowDeiconified(WindowEvent e)
           
 void windowIconified(WindowEvent e)
           
 void windowOpened(WindowEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CyMain

public CyMain(String[] args)
       throws Exception
Primary Method for Starting Cytoscape. Use the passed args to create a CytoscapeConfig object.

Method Detail

windowClosing

public void windowClosing(WindowEvent e)
on linux (at least) a killed window generates a 'windowClosed' event; trap that here

Specified by:
windowClosing in interface WindowListener

windowDeactivated

public void windowDeactivated(WindowEvent e)
Specified by:
windowDeactivated in interface WindowListener

windowDeiconified

public void windowDeiconified(WindowEvent e)
Specified by:
windowDeiconified in interface WindowListener

windowIconified

public void windowIconified(WindowEvent e)
Specified by:
windowIconified in interface WindowListener

windowActivated

public void windowActivated(WindowEvent e)
Specified by:
windowActivated in interface WindowListener

windowOpened

public void windowOpened(WindowEvent e)
Specified by:
windowOpened in interface WindowListener

windowClosed

public void windowClosed(WindowEvent e)
Specified by:
windowClosed in interface WindowListener

exit

public static void exit(int exitCode)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

www.cytoscape.org