cytoscape.editor.actions
Class NewNetworkAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycytoscape.util.CytoscapeAction
          extended bycytoscape.editor.actions.NewNetworkAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class NewNetworkAction
extends cytoscape.util.CytoscapeAction

creates a new network and associates an editor with it

Version:
1.0
Author:
Allan Kuchinsky, Agilent Technologies
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
NewNetworkAction(boolean label)
           
NewNetworkAction(java.lang.String editorName, CytoscapeEditorFactory factory)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          create the new network and assign a CytosapeEdtor note that an editor must be first initialized before a new network can be added and the editor assigned to it.
 
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

NewNetworkAction

public NewNetworkAction(java.lang.String editorName,
                        CytoscapeEditorFactory factory)

NewNetworkAction

public NewNetworkAction(boolean label)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
create the new network and assign a CytosapeEdtor note that an editor must be first initialized before a new network can be added and the editor assigned to it. in Cytoscape version 2.3, this editor initializatoin is performed upon startup.