cytoscape.view
Class NetworkPanel.PopupListener
java.lang.Object
java.awt.event.MouseAdapter
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkPanel.PopupListener
protected NetworkPanel.PopupListener()
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
Copyright 2010 Cytoscape Consortium. All rights reserved.