com.jgraph.plaf.basic
Class BasicGraphUI.MouseHandler
java.lang.Object
java.awt.event.MouseAdapter
com.jgraph.plaf.basic.BasicGraphUI.MouseHandler
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
- Enclosing class:
- BasicGraphUI
- public class BasicGraphUI.MouseHandler
- extends java.awt.event.MouseAdapter
- implements java.awt.event.MouseMotionListener, java.io.Serializable
TreeMouseListener is responsible for updating the selection
based on mouse events.
- See Also:
- Serialized Form
Method Summary |
protected boolean |
isDescendant(CellView parentView,
CellView childView)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse pointer has been moved on a component
(with no buttons down). |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
|
Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cell
protected CellView cell
handler
protected java.lang.Object handler
previousCursor
protected transient java.awt.Cursor previousCursor
BasicGraphUI.MouseHandler
public BasicGraphUI.MouseHandler()
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Invoked when a mouse button has been pressed on a component.
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent e)
- Specified by:
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent e)
- Invoked when the mouse pointer has been moved on a component
(with no buttons down).
- Specified by:
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent e)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
isDescendant
protected boolean isDescendant(CellView parentView,
CellView childView)