Cytoscape 2.8.0 API

cytoscape.actions
Class ImportGraphFileAction

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

public class ImportGraphFileAction
extends CytoscapeAction

Imports a graph of arbitrary type. The types of graphs allowed are defined by the ImportHandler.

See Also:
Serialized Form

Field Summary
protected static CyLogger logger
           
protected  CyMenus windowMenu
           
 
Fields inherited from class cytoscape.util.CytoscapeAction
acceleratorSet, consoleName, keyCode, keyModifiers, menuIndex, preferredButtonGroup, preferredMenu, useCheckBoxMenuItem
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ImportGraphFileAction(CyMenus windowMenu)
          Constructor.
ImportGraphFileAction(CyMenus windowMenu, boolean label)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          User-initiated action to load a CyNetwork into Cytoscape.
 
Methods inherited from class cytoscape.util.CytoscapeAction
actionHelp, clone, completions, enableForNetwork, enableForNetworkAndView, getActionList, getKeyCode, getKeyModifiers, getName, getPreferredButtonGroup, getPreferredMenu, getPrefferedIndex, initialize, isAccelerated, isInMenuBar, isInToolBar, menuCanceled, menuDeselected, menuSelected, setAcceleratorCombo, setName, setPreferredButtonGroup, setPreferredIndex, setPreferredMenu, takeArgs
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

windowMenu

protected CyMenus windowMenu

logger

protected static CyLogger logger
Constructor Detail

ImportGraphFileAction

public ImportGraphFileAction(CyMenus windowMenu)
Constructor.

Parameters:
windowMenu - WindowMenu Object.

ImportGraphFileAction

public ImportGraphFileAction(CyMenus windowMenu,
                             boolean label)
Constructor.

Parameters:
windowMenu - WindowMenu Object.
label - boolean label.
Method Detail

actionPerformed

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

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

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.