|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.MouseAdapter
org.jgraph.plaf.basic.BasicGraphUI.MouseHandler
TreeMouseListener is responsible for updating the selection based on mouse events.
Field Summary | |
protected CellView |
cell
|
protected Object |
handler
|
protected Cursor |
previousCursor
|
Constructor Summary | |
BasicGraphUI.MouseHandler()
|
Method Summary | |
protected boolean |
handleEditTrigger(Object cell,
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(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
Invoked when the mouse pointer has been moved on a component (with no buttons down). |
void |
mousePressed(MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(MouseEvent e)
|
protected void |
postProcessSelection(MouseEvent e,
Object cell,
boolean wasSelected)
Invoked after a cell has been selected in the mouseReleased method. |
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 |
Field Detail |
protected CellView cell
protected Object handler
protected transient Cursor previousCursor
Constructor Detail |
public BasicGraphUI.MouseHandler()
Method Detail |
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
protected boolean handleEditTrigger(Object cell, MouseEvent e)
cell
- the cell being editede
- the mouse event triggering the edit
true
if the editing has already startedpublic void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
protected void postProcessSelection(MouseEvent e, Object cell, boolean wasSelected)
protected boolean isDescendant(CellView parentView, CellView childView)
|
JGraph |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |