cytoscape
Class CyMain
java.lang.Object
cytoscape.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. |
CyMain
public CyMain(String[] args)
throws Exception
- Primary Method for Starting Cytoscape. Use the passed
args to create a CytoscapeConfig object.
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