DragSource#isDragImageSupported returns false.
Its location in screen coordinates may be changed via move.
When the image is no longer needed, invoke dispose, which
hides the graphic immediately, or returnToOrigin, which
moves the image to its original location and then disposes it.
| Modifier and Type | Field and Description |
|---|---|
| private static final float | |
| private Window | |
| private Point | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | GhostedDragImage(Component dragSource, final Icon
image to be drawn icon, Point initial screen location of the image initialScreenLoc, final Point cursorOffset)Create a ghosted drag image, using the given icon. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| DEFAULT_ALPHA | back to summary |
|---|---|
| private static final float DEFAULT_ALPHA | |
| dragImage | back to summary |
|---|---|
| private Window dragImage | |
| origin | back to summary |
|---|---|
| private Point origin | |
| SLIDE_INTERVAL | back to summary |
|---|---|
| private static final int SLIDE_INTERVAL | |
| GhostedDragImage | back to summary |
|---|---|
| public GhostedDragImage(Component dragSource, final Icon icon, Point initialScreenLoc, final Point cursorOffset) Create a ghosted drag image, using the given icon. | |
| dispose | back to summary |
|---|---|
| public void dispose() Make all ghosted images go away. | |
| move | back to summary |
|---|---|
| public void move(Point screenLocation) Move the ghosted image to the requested location.
| |
| returnToOrigin | back to summary |
|---|---|
| public void returnToOrigin() Animate the ghosted image returning to its origin. | |
| setAlpha | back to summary |
|---|---|
| public void setAlpha(float alpha) Set the transparency of the ghosted image. | |