cytoscape.editor.editors
Class DefaultCytoscapeEditor

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

public class DefaultCytoscapeEditor
extends BasicCytoscapeEditor
implements javax.swing.event.ChangeListener

/** An example 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.

Version:
1.0
Author:
Allan Kuchinsky
See Also:
PaletteNetworkEditEventHandler

Field Summary
static java.lang.String EDGE_TYPE
           
static cytoscape.data.CyAttributes edgeAttribs
           
static java.lang.String NODE_TYPE
           
static cytoscape.data.CyAttributes nodeAttribs
          main data structures for all node and edge attributes
 
Fields inherited from class cytoscape.editor.editors.BasicCytoscapeEditor
BIOPAX_NAME_ATTRIBUTE
 
Constructor Summary
DefaultCytoscapeEditor()
           
 
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.
 void stateChanged(javax.swing.event.ChangeEvent e)
          redraw palette when a shape, color, or arrow mapping changes
 
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

EDGE_TYPE

public static final java.lang.String EDGE_TYPE
See Also:
Constant Field Values

nodeAttribs

public static cytoscape.data.CyAttributes nodeAttribs
main data structures for all node and edge attributes


edgeAttribs

public static cytoscape.data.CyAttributes edgeAttribs
Constructor Detail

DefaultCytoscapeEditor

public DefaultCytoscapeEditor()
Method Detail

initializeControls

public void initializeControls(java.util.List args)
specialized initialization code for editor, called by CytoscapeEditorManager when a new editor is built. draws shapes on the palette, based upon the visual style

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) *

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
redraw palette when a shape, color, or arrow mapping changes

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e -