Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
DragImageExchange Class Reference

Static Public Member Functions

static void setDragImage (BufferedImage dragImage, Point mouseOffset)
 
static BufferedImage getDragImage ()
 
static Point getMouseOffset ()
 
static void completeExchange ()
 

Detailed Description

DragImageExchange provides a means for moving sharing ghosted drag images between different components. When a drag operation starts, the source component renders the drag image and stores it in this class. The target component can then use the image when painting the ghosted drop image.

Author
Nathan de Vries ndvri.nosp@m.es@s.nosp@m.quiz..nosp@m.net

Definition at line 29 of file DragImageExchange.java.

Member Function Documentation

static void completeExchange ( )
inlinestatic

Ends the current image exchange.

Definition at line 75 of file DragImageExchange.java.

static BufferedImage getDragImage ( )
inlinestatic

Returns the stored drag image

Definition at line 56 of file DragImageExchange.java.

static Point getMouseOffset ( )
inlinestatic

Returns the offset between the stored drag image and the original mouse pointer.

Definition at line 66 of file DragImageExchange.java.

static void setDragImage ( BufferedImage  dragImage,
Point  mouseOffset 
)
inlinestatic

Stores an drag image for later use.

Parameters
dragImagea drag image which represents the dragged items
mouseOffsetthe offset between the mouse and the top-left corner of the dragImage

Definition at line 45 of file DragImageExchange.java.


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