|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcytoscape.editor.event.NetworkEditEventAdapter
The NetworkEditEventAdapter class provides stub methods for specialized network edit event handlers, as part of the graph editing framework. The specialized network edit event handler is the key class in the Cytoscape editor for defining the behavior of the editor. The behavior is defined in terms of how the event handler responds to mouse events, drag/drop events, and button press events. All editors must include a network edit event handler class that extends the NetworkEditEventAdapter class. * revised: 04/15/2006 to integrate with Cytoscape 2.3 renderer Phase 1: switch underlying node identification and edge drawing code Phase 2: remove dependencies upon Piccolo
Constructor Summary | |
NetworkEditEventAdapter()
|
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed() method should be overwritten by child classes |
void |
allAttributeValuesRemoved(java.lang.String objectKey,
java.lang.String attributeName)
|
void |
attributeValueAssigned(java.lang.String objectKey,
java.lang.String attributeName,
java.lang.Object[] keyIntoValue,
java.lang.Object oldAttributeValue,
java.lang.Object newAttributeValue)
MultiHashMapListener methods |
void |
attributeValueRemoved(java.lang.String objectKey,
java.lang.String attributeName,
java.lang.Object[] keyIntoValue,
java.lang.Object attributeValue)
|
CytoscapeEditor |
get_caller()
|
ding.view.InnerCanvas |
getCanvas()
|
ding.view.DGraphView |
getView()
|
void |
itemDropped(phoebe.PhoebeCanvasDropEvent dte)
method for responding when an item is dropped onto the canvas. |
void |
keyPressed(java.awt.event.KeyEvent event)
|
void |
keyReleased(java.awt.event.KeyEvent event)
|
void |
keyTyped(java.awt.event.KeyEvent event)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
set_caller(CytoscapeEditor _caller)
|
void |
setView(ding.view.DGraphView view)
|
void |
start(ding.view.DGraphView view)
starts up the event handler on the input network view adds an input event listener to the view's canvas |
void |
stop()
stops the event handler by removing the input event listener from the canvas this is called when the user switches between editors |
void |
updateEdge()
method for rendering an edge under construction as the user moves the mouse typically this may be done via a rubberband-line that udpates as the mouse position changes |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NetworkEditEventAdapter()
Method Detail |
public void start(ding.view.DGraphView view)
view
- a Cytoscape network viewpublic void stop()
public ding.view.InnerCanvas getCanvas()
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void keyPressed(java.awt.event.KeyEvent event)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent event)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent event)
keyTyped
in interface java.awt.event.KeyListener
public void updateEdge()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public void itemDropped(phoebe.PhoebeCanvasDropEvent dte)
itemDropped
in interface phoebe.PhoebeCanvasDropListener
public void attributeValueAssigned(java.lang.String objectKey, java.lang.String attributeName, java.lang.Object[] keyIntoValue, java.lang.Object oldAttributeValue, java.lang.Object newAttributeValue)
attributeValueAssigned
in interface cytoscape.data.attr.MultiHashMapListener
public void attributeValueRemoved(java.lang.String objectKey, java.lang.String attributeName, java.lang.Object[] keyIntoValue, java.lang.Object attributeValue)
attributeValueRemoved
in interface cytoscape.data.attr.MultiHashMapListener
public void allAttributeValuesRemoved(java.lang.String objectKey, java.lang.String attributeName)
allAttributeValuesRemoved
in interface cytoscape.data.attr.MultiHashMapListener
public CytoscapeEditor get_caller()
public void set_caller(CytoscapeEditor _caller)
_caller
- The _caller to set.public ding.view.DGraphView getView()
public void setView(ding.view.DGraphView view)
view
- The view to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |