public class BasicGraphUI.MouseHandler extends MouseAdapter implements MouseMotionListener, Serializable
Modifier and Type | Field and Description |
---|---|
protected CellView |
cell |
protected Object |
handler |
protected Cursor |
previousCursor |
Constructor and Description |
---|
MouseHandler() |
Modifier and Type | Method and Description |
---|---|
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.
|
mouseClicked, mouseEntered, mouseExited, mouseWheelMoved
protected CellView cell
protected Object handler
protected transient Cursor previousCursor
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class MouseAdapter
protected boolean handleEditTrigger(Object cell, MouseEvent e)
cell
- the cell being editede
- the mouse event triggering the edittrue
if the editing has already startedpublic void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class MouseAdapter
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class MouseAdapter
protected void postProcessSelection(MouseEvent e, Object cell, boolean wasSelected)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.