|
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
public class BasicGraphUI.MouseHandler
TreeMouseListener is responsible for updating the selection based on mouse events.
| Field Summary | |
|---|---|
protected CellView |
cell
|
protected java.lang.Object |
handler
|
protected java.awt.Cursor |
previousCursor
|
| Constructor Summary | |
|---|---|
BasicGraphUI.MouseHandler()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.awt.event.MouseAdapter |
|---|
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CellView cell
protected java.lang.Object handler
protected transient java.awt.Cursor previousCursor
| Constructor Detail |
|---|
public BasicGraphUI.MouseHandler()
| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed 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 edit
true if the editing has already startedpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class java.awt.event.MouseAdapterpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class java.awt.event.MouseAdapterpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class java.awt.event.MouseAdapter
protected void postProcessSelection(java.awt.event.MouseEvent e,
java.lang.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 | |||||||||