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

Data Structures

class  TableSelection
 
class  TreeSelection
 

Public Member Functions

 SelectionTool (JTree comp)
 
 SelectionTool (JTable comp)
 
 SelectionTool (SelectionHandler handler, Component comp)
 
Point getInitialDragPoint ()
 
boolean isDragging ()
 
void mouseMoved (MouseEvent evt)
 
void mouseReleased (MouseEvent evt)
 
void mouseDragged (MouseEvent evt)
 
void paintSelectionTool (Graphics2D g2d)
 

Protected Member Functions

void drawSelectionImage (Graphics2D g2d, int x, int y, int width, int height)
 

Detailed Description

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

Definition at line 30 of file SelectionTool.java.

Member Function Documentation

void drawSelectionImage ( Graphics2D  g2d,
int  x,
int  y,
int  width,
int  height 
)
inlineprotected

Paints the selection image

Parameters
g2dthe graphics set to draw to
xthe x co-ordinate to start drawing in
ythe x co-ordinate to start drawing in
widththe width of the selection tool
heightthe height of the selection tool

Definition at line 178 of file SelectionTool.java.

boolean isDragging ( )
inline

Returns true if the selection tool is currently dragging

Returns
TRUE if the selection tool is currently dragging

Definition at line 76 of file SelectionTool.java.

void mouseDragged ( MouseEvent  evt)
inline

Event Listener method that is called when the mouse is dragged

Parameters
evtthe MouseEvent

Definition at line 103 of file SelectionTool.java.

void mouseMoved ( MouseEvent  evt)
inline

Event listener method that is called when the mouse is moved

Parameters
evtthe MouseEvent

Definition at line 84 of file SelectionTool.java.

void mouseReleased ( MouseEvent  evt)
inline

Event listener method that is called when the mouse is released

Parameters
evtthe MouseEvent

Definition at line 90 of file SelectionTool.java.

void paintSelectionTool ( Graphics2D  g2d)
inline

Paints the rectangular tool to indicate what nodes will be in the current selection. This method calls drawSelectionImage to do the actual painting

Parameters
g2dthe graphics object to paint to

Definition at line 126 of file SelectionTool.java.


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