Cytoscape 2.8.0 API

cytoscape.view
Class NetworkPanel.PopupListener

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by cytoscape.view.NetworkPanel.PopupListener
All Implemented Interfaces:
MouseListener, MouseMotionListener, MouseWheelListener, EventListener
Enclosing class:
NetworkPanel

protected class NetworkPanel.PopupListener
extends MouseAdapter

This class listens to mouse events from the TreeTable, if the mouse event is one that is canonically associated with a popup menu (ie, a right click) it will pop up the menu with option for destroying view, creating view, and destroying network (this is platform specific apparently)


Constructor Summary
protected NetworkPanel.PopupListener()
           
 
Method Summary
 void mousePressed(MouseEvent e)
          Don't know why you need both of these, but this is how they did it in the example
 void mouseReleased(MouseEvent e)
           
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkPanel.PopupListener

protected NetworkPanel.PopupListener()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
Don't know why you need both of these, but this is how they did it in the example

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter

Cytoscape 2.8.0 API

Copyright 2010 Cytoscape Consortium. All rights reserved.