cytoscape.editor.event
Class BioPAXNetworkEditEventHandler

java.lang.Object
  extended bycytoscape.editor.event.NetworkEditEventAdapter
      extended bycytoscape.editor.event.BasicNetworkEditEventHandler
          extended bycytoscape.editor.event.PaletteNetworkEditEventHandler
              extended bycytoscape.editor.event.BioPAXNetworkEditEventHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, cytoscape.data.attr.MultiHashMapListener, phoebe.PhoebeCanvasDropListener

public class BioPAXNetworkEditEventHandler
extends PaletteNetworkEditEventHandler

Event handler for SimpleBioPAX_Editor. Pretty much equivalent yp SimpleBioMoleculeEditor, except that BIOPAX_NODE_TYPE and BIOPAX_EDGE_TYPE are ued as the controlling variable.

Author:
ajk

Field Summary
static cytoscape.data.CyAttributes edgeAttribs
           
static cytoscape.data.CyAttributes nodeAttribs
          main data structures for all node and edge attributes
 
Fields inherited from class cytoscape.editor.event.PaletteNetworkEditEventHandler
NODE_TYPE
 
Fields inherited from class cytoscape.editor.event.BasicNetworkEditEventHandler
DEFAULT_EDGE, DEFAULT_NODE, EDGE_TYPE, handlingEdgeDrop
 
Constructor Summary
BioPAXNetworkEditEventHandler()
           
BioPAXNetworkEditEventHandler(CytoscapeEditor caller)
           
BioPAXNetworkEditEventHandler(CytoscapeEditor caller, cytoscape.view.CyNetworkView view)
           
 
Method Summary
 cytoscape.CyNode createNode(java.awt.geom.Point2D location)
          create node at point of location
 cytoscape.CyEdge finishEdge(edu.umd.cs.piccolo.event.PInputEvent e)
          finish edge on node containing input point
 void itemDropped(phoebe.PhoebeCanvasDropEvent e)
          The itemDropped() method is at the heart of the palette-based editor.
 
Methods inherited from class cytoscape.editor.event.PaletteNetworkEditEventHandler
findEdgeDropTarget, handleDroppedEdge, handleDroppedURL
 
Methods inherited from class cytoscape.editor.event.BasicNetworkEditEventHandler
allAttributeValuesRemoved, attributeValueAssigned, attributeValueRemoved, beginEdge, finishEdge, get_caller, getCanvas, getEdgeAttributeName, getEdgeAttributeValue, getNextPoint, getNode, getNodeAttributeName, getNodeAttributeValue, getStartPoint, getView, isEdgeStarted, isHandlingEdgeDrop, keyTyped, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, set_caller, setEdgeAttributeName, setEdgeAttributeValue, setEdgeStarted, setHandlingEdgeDrop, setNextPoint, setNode, setNodeAttributeName, setNodeAttributeValue, setStartPoint, setView, start, stop, updateEdge
 
Methods inherited from class cytoscape.editor.event.NetworkEditEventAdapter
actionPerformed, keyPressed, keyReleased, mouseClicked, mouseReleased
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Field Detail

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

BioPAXNetworkEditEventHandler

public BioPAXNetworkEditEventHandler()

BioPAXNetworkEditEventHandler

public BioPAXNetworkEditEventHandler(CytoscapeEditor caller)
Parameters:
caller -

BioPAXNetworkEditEventHandler

public BioPAXNetworkEditEventHandler(CytoscapeEditor caller,
                                     cytoscape.view.CyNetworkView view)
Parameters:
caller -
view -
Method Detail

createNode

public cytoscape.CyNode createNode(java.awt.geom.Point2D location)
create node at point of location

Overrides:
createNode in class BasicNetworkEditEventHandler
Parameters:
location - point of mouse press (in Canvas coordinates)

finishEdge

public cytoscape.CyEdge finishEdge(edu.umd.cs.piccolo.event.PInputEvent e)
finish edge on node containing input point

Parameters:
e - input event for mouse press

itemDropped

public void itemDropped(phoebe.PhoebeCanvasDropEvent e)
The itemDropped() method is at the heart of the palette-based editor. The method can respond to a variety of DataFlavors that correspond to the shape being dragged and dropped from the palette. These include Cytoscape nodes and edges, as well as URLs that can be dragged and dropped from other applications onto the palette.

Specified by:
itemDropped in interface phoebe.PhoebeCanvasDropListener
Overrides:
itemDropped in class PaletteNetworkEditEventHandler