Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
CueTree.CueGestureHandler Class Reference
Inheritance diagram for CueTree.CueGestureHandler:

Public Member Functions

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

Protected Member Functions

void handleSingleSource (Point initPoint)
 
void handleMultipleSources (Point initPoint)
 
TreePath[] filterMultipleNodes (TreePath[] sourcePaths)
 
boolean pointTriggersMove (Point p)
 
void triggerPath (final TreePath path, final int mouseY, final int triggerCount)
 

Detailed Description

A CueGestureHandler handles mouse events for the CueTree. When a mouse event occurs that initiates the cue the CueGestureHandler invokes startCueMode().

Author
Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t

Definition at line 957 of file CueTree.java.

Member Function Documentation

TreePath [] filterMultipleNodes ( TreePath[]  sourcePaths)
inlineprotected

Filters out unwanted nodes from the multiple move selection and returns the wanted nodes.

Parameters
sourcePathsthe sourcePaths that are current in the multiple move operation.
Returns
the filtered sourcePaths

Definition at line 1227 of file CueTree.java.

void mouseDragged ( MouseEvent  evt)
inline

Event Listener method that is called when the mouse is dragged

Parameters
evtthe MouseEvent

Definition at line 964 of file CueTree.java.

void mouseMoved ( MouseEvent  evt)
inline

Event Listener method that is called during mouse movement operations.

Parameters
evtthe mouse event

Definition at line 1244 of file CueTree.java.

void mousePressed ( MouseEvent  evt)
inline

Event Listener method that is called when the mouse is pressed

Parameters
evtthe mouse event

Definition at line 985 of file CueTree.java.

boolean pointTriggersMove ( Point  p)
inlineprotected

Returns true if the specified point will trigger a move operation when the mouse if pressed on that point

Parameters
pthe point to check

Definition at line 1236 of file CueTree.java.

void triggerPath ( final TreePath  path,
final int  mouseY,
final int  triggerCount 
)
inlineprotected

Oscilates the cue line on and off for the specified path as a means of indicating that the path has been selected for a move operation.

Parameters
paththe path to trigger
mouseYthe mouse Y co-ordinate
triggerCountthe number of times to trigger the path

Definition at line 1295 of file CueTree.java.


The documentation for this class was generated from the following file: