com.sun.jna.examples.dnd
public class GhostedDragImage extends Object
Its location in screen coordinates may be changed via GhostedDragImage.
When the image is no longer needed, invoke GhostedDragImage, which hides the graphic immediately, or GhostedDragImage, which moves the image to its original location and then disposes it.
Constructor Summary | |
---|---|
GhostedDragImage(Component dragSource, Icon icon, Point initialScreenLoc, Point cursorOffset) Create a ghosted drag image, using the given icon. |
Method Summary | |
---|---|
void | dispose() Make all ghosted images go away. |
void | move(Point screenLocation) Move the ghosted image to the requested location. |
void | returnToOrigin() Animate the ghosted image returning to its origin. |
void | setAlpha(float alpha) Set the transparency of the ghosted image. |
Parameters: icon image to be drawn initialScreenLoc initial screen location of the image
Parameters: screenLocation Where to draw the image, in screen coordinates