public class BasicGraphUI.MouseHandler
extends java.awt.event.MouseAdapter
implements java.awt.event.MouseMotionListener, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected CellView |
cell |
protected java.lang.Object |
handler |
protected java.awt.Cursor |
previousCursor |
Constructor and Description |
---|
MouseHandler() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
handleEditTrigger(java.lang.Object cell,
java.awt.event.MouseEvent e)
Handles edit trigger by starting the edit and return true if the
editing has already started.
|
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) |
protected void |
postProcessSelection(java.awt.event.MouseEvent e,
java.lang.Object cell,
boolean wasSelected)
Invoked after a cell has been selected in the mouseReleased method.
|
protected CellView cell
protected java.lang.Object handler
protected transient java.awt.Cursor previousCursor
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
protected boolean handleEditTrigger(java.lang.Object cell, java.awt.event.MouseEvent e)
cell
- the cell being editede
- the mouse event triggering the edittrue
if the editing has already startedpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class java.awt.event.MouseAdapter
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
mouseMoved
in class java.awt.event.MouseAdapter
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class java.awt.event.MouseAdapter
protected void postProcessSelection(java.awt.event.MouseEvent e, java.lang.Object cell, boolean wasSelected)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.