Cytoscape 2.4.1 (c) 2006,2007 ISB, MSKCC, UCSD

cytoscape.actions
Class ExportAsInteractionsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by cytoscape.util.CytoscapeAction
          extended by cytoscape.actions.ExportAsInteractionsAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public class ExportAsInteractionsAction
extends CytoscapeAction

write out the current graph to the specified file, using the standard interactions format: nodeA edgeType nodeB. for example:

YMR056C pp YLL013C YCR107W pp YBR265W

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExportAsInteractionsAction()
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          User-initiated action to save the current network in SIF format to a user-specified file.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, isAccelerated, isInMenuBar, isInToolBar, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportAsInteractionsAction

public ExportAsInteractionsAction()
Constructor.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
User-initiated action to save the current network in SIF format to a user-specified file. If successfully saved, fires a PropertyChange event with property=Cytoscape.NETWORK_SAVED, old_value=null, and new_value=a three element Object array containing:
  1. first element = CyNetwork saved
  2. second element = URI of the location where saved
  3. third element = an Integer representing the format in which the Network was saved (e.g., Cytoscape.FILE_SIF).

Specified by:
actionPerformed in interface ActionListener
Specified by:
actionPerformed in class CytoscapeAction
Parameters:
e - ActionEvent Object.

www.cytoscape.org