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

Public Member Functions

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

Protected Member Functions

boolean isDropping ()
 
void paintDropImage (Graphics2D g2d)
 
void paintCueLine (Graphics2D g2d)
 

Protected Attributes

Point initMousePt
 
Point lastMousePt
 
BufferedImage dragImage
 
Point mouseOffset = new Point(5,5)
 

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
Nathan de Vries ndvri.nosp@m.es@s.nosp@m.quiz..nosp@m.net

Definition at line 1019 of file InspectorGadget.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 InspectorGadget

Parameters
dtdethe DropTargetDragEvent

Definition at line 1033 of file InspectorGadget.java.

void dragExit ( DropTargetEvent  dte)
inline

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

Parameters
dtethe DropTargetEvent

Definition at line 1052 of file InspectorGadget.java.

void dragOver ( DropTargetDragEvent  dtde)
inline

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

Parameters
dtdethe DropTargetDragEvent

Definition at line 1064 of file InspectorGadget.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 1081 of file InspectorGadget.java.

void dropActionChanged ( DropTargetDragEvent  dtde)
inline

Events Listener method that is called when the drop action changes

Parameters
dtdethe DropTargetDragEvent

Definition at line 1044 of file InspectorGadget.java.

boolean isDropping ( )
inlineprotected

Returns TRUE if we are currently performing a drop operation

Returns
TRUE if we are currently performing a drop operation

Definition at line 1156 of file InspectorGadget.java.

void paintCueLine ( Graphics2D  g2d)
inlineprotected

Paints a cue line to indicate where the node(s) will be placed in relation to where the mouse has been dragged to.

Parameters
g2dthe graphics to paint the drag image to

Definition at line 1179 of file InspectorGadget.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 1166 of file InspectorGadget.java.


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