org.jgraph.plaf.basic.BasicGraphUI.MouseHandler Class Reference

List of all members.

Public Member Functions

void mousePressed (MouseEvent e)
void mouseDragged (MouseEvent e)
void mouseMoved (MouseEvent e)
void mouseReleased (MouseEvent e)

Protected Member Functions

boolean handleEditTrigger (Object cell, MouseEvent e)
void postProcessSelection (MouseEvent e, Object cell, boolean wasSelected)
boolean isDescendant (CellView parentView, CellView childView)

Protected Attributes

CellView cell
Object handler
transient Cursor previousCursor = null

Detailed Description

TreeMouseListener is responsible for updating the selection based on mouse events.


Member Function Documentation

boolean org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.handleEditTrigger Object  cell,
MouseEvent  e
[protected]
 

Handles edit trigger by starting the edit and return true if the editing has already started.

Parameters:
cell the cell being edited
e the mouse manas.event triggering the edit
Returns:
true if the editing has already started

boolean org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.isDescendant CellView  parentView,
CellView  childView
[protected]
 

void org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.mouseDragged MouseEvent  e  ) 
 

void org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.mouseMoved MouseEvent  e  ) 
 

Invoked when the mouse pointer has been moved on a component (with no buttons down).

void org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.mousePressed MouseEvent  e  ) 
 

Invoked when a mouse button has been pressed on a component.

void org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.mouseReleased MouseEvent  e  ) 
 

void org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.postProcessSelection MouseEvent  e,
Object  cell,
boolean  wasSelected
[protected]
 

Invoked after a cell has been selected in the mouseReleased method. This can be used to do something interesting if the cell was already selected, in which case this implementation selects the parent. Override if you want different behaviour, such as start editing.


Member Data Documentation

CellView org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.cell [protected]
 

Object org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.handler [protected]
 

transient Cursor org.jgraph.plaf.basic.BasicGraphUI.MouseHandler.previousCursor = null [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:18 2006 for Digimod by  doxygen 1.4.6-NO