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

Public Member Functions

boolean isDropping ()
 
void dragEnter (DropTargetDragEvent dtde)
 
void dragExit (DropTargetEvent dte)
 
void dragOver (DropTargetDragEvent dtde)
 
void drop (DropTargetDropEvent dtde)
 
void dropActionChanged (DropTargetDragEvent dtde)
 

Protected Member Functions

void paintDropImage (Graphics2D g2d)
 

Protected Attributes

Point initMousePt
 

Detailed Description

The Drop Handler class handles drop operations that occur within the MatrixTree. Currently, only MatrixTreeTransferable.TREE_NODE_FLAVOUR flavours are accepted as successful drop transferables.

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

Definition at line 1785 of file MatrixTree.java.

Member Function Documentation

void dragEnter ( DropTargetDragEvent  dtde)
inline

Event listener method that is called when the mouse is dragged into the bounds of the MatrixTree

Parameters
dtdethe DropTargetDragEvent

Definition at line 1806 of file MatrixTree.java.

void dragExit ( DropTargetEvent  dte)
inline

Event listener method that is called when the mouse is dragged ouside the bounds of the MatrixTree

Parameters
dtethe DropTargetEvent

Definition at line 1817 of file MatrixTree.java.

void dragOver ( DropTargetDragEvent  dtde)
inline

Event listener method that is called repeatedly when the mouse is within the bounds of the MatrixTree

Parameters
dtdethe DropTargetDragEvent

Definition at line 1832 of file MatrixTree.java.

void drop ( DropTargetDropEvent  dtde)
inline

Event Listener method that is called when the mouse is released during a drop operation

Parameters
dtdethe DropTargetDropEvent

Definition at line 1851 of file MatrixTree.java.

void dropActionChanged ( DropTargetDragEvent  dtde)
inline

Events Listener method that is called when the drop action changes

Parameters
dtdethe DropTargetDragEvent

Definition at line 1913 of file MatrixTree.java.

boolean isDropping ( )
inline

Returns TRUE if we are currently performing a drop operation

Returns
TRUE if we are currently performing a drop operation

Definition at line 1797 of file MatrixTree.java.

void paintDropImage ( Graphics2D  g2d)
inlineprotected

Paints the drag image so the image appears in the same location under the mouse where the drag operation first started.

Parameters
g2dthe graphics to paint the drag image to

Definition at line 1897 of file MatrixTree.java.


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