cytoscape.editor.editors
Class SimpleBioPAX_Editor

java.lang.Object
  extended bycytoscape.editor.editors.BasicCytoscapeEditor
      extended bycytoscape.editor.editors.SimpleBioPAX_Editor
All Implemented Interfaces:
CytoscapeEditor, ding.view.EdgeContextMenuListener, java.util.EventListener, cytoscape.data.FlagEventListener, ding.view.NodeContextMenuListener

public class SimpleBioPAX_Editor
extends BasicCytoscapeEditor

An example "BioPAX-like" editor that extends the basic Cytoscape editor and is based upon a drag-and-drop and palette framework into which developers plug in semantics. The framework consists of

The dropping of shapes onto the canvas results in the addition of nodes and edges to the current Cytoscape network, as defined by the behavior of the event handler that responds to the drop events. In the simple "BioPAX-like" editor, there are node types for proteins, catalysis, small molecules, and biochemical reactions, as well as several directed edge types.

Version:
1.0
Author:
Allan Kuchinsky
See Also:
PaletteNetworkEditEventHandler

Field Summary
static java.lang.String NODE_TYPE
           
 
Fields inherited from class cytoscape.editor.editors.BasicCytoscapeEditor
BIOPAX_NAME_ATTRIBUTE
 
Constructor Summary
SimpleBioPAX_Editor()
           
 
Method Summary
 void disableControls(java.util.List args)
          sets controls invisible when editor type is switched
 void enableControls(java.util.List args)
          sets controls visible when editor type is switched back to this editor
 void initializeControls(java.util.List args)
          specialized initialization code for editor, called by CytoscapeEditorManager when a new editor is built.
 
Methods inherited from class cytoscape.editor.editors.BasicCytoscapeEditor
addEdge, addEdge, addEdge, addEdge, addEdgeContextMenuItems, addNode, addNode, addNode, addNode, addNodeContextMenuItems, buildVisualStyle, deleteEdge, deleteNode, getControllingEdgeAttribute, getControllingNodeAttribute, getEditorName, getNetworkEditEventAdapter, menuItemExists, onFlagEvent, setControllingEdgeAttribute, setControllingNodeAttribute, setEditorName, setNetworkEditEventAdapter
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_TYPE

public static final java.lang.String NODE_TYPE
See Also:
Constant Field Values
Constructor Detail

SimpleBioPAX_Editor

public SimpleBioPAX_Editor()
Method Detail

initializeControls

public void initializeControls(java.util.List args)
specialized initialization code for editor, called by CytoscapeEditorManager when a new editor is built.

Specified by:
initializeControls in interface CytoscapeEditor
Overrides:
initializeControls in class BasicCytoscapeEditor
Parameters:
args - an arbitrary list of arguments passed to initialization routine. Not used in this editor

disableControls

public void disableControls(java.util.List args)
sets controls invisible when editor type is switched

Specified by:
disableControls in interface CytoscapeEditor
Overrides:
disableControls in class BasicCytoscapeEditor
Parameters:
args - args an arbitrary list of arguments (not used in this editor)

enableControls

public void enableControls(java.util.List args)
sets controls visible when editor type is switched back to this editor

Specified by:
enableControls in interface CytoscapeEditor
Overrides:
enableControls in class BasicCytoscapeEditor
Parameters:
args - args an arbitrary list of arguments (not used in this editor) *