Is there any way to remove or inhibit the SIF-interpreter action from
a network?
If so, how could I do this?
Thanks!
Tain
2. Add mouse listener to network:
public ListenMouse(){
view=Cytoscape.getCurrentNetworkView();
((DGraphView) view).getCanvas().addMouseListener(this);
((DGraphView) view).getCanvas().addMouseMotionListener
(this);
}
3. Detect mouse click:
public void mouseClicked(MouseEvent e){
EdgeView ev =((DGraphView) view).getPickedEdgeView
(e.getPoint ());
if (ev!=null){//if click on an edge, do something here}
Hope this helps.
Jing
Thanks alot!! Happy holiday!!