Modifier and Type | Method and Description |
---|---|
Image |
getDragView()
Gets the image used as a drag view.
|
double |
getDragViewOffsetX()
Gets the x position of the cursor of the drag view image.
|
double |
getDragViewOffsetY()
Gets the y position of the cursor of the drag view image.
|
Set<TransferMode> |
getTransferModes()
Gets set of transport modes supported by source of this drag opeation.
|
void |
setDragView(Image image)
Sets the visual representation of data being transfered
in a drag and drop gesture.
|
void |
setDragView(Image image,
double offsetX,
double offsetY)
Sets the visual representation of data being transfered
in a drag and drop gesture.
|
void |
setDragViewOffsetX(double offsetX)
Sets the x position of the cursor of the drag view image.
|
void |
setDragViewOffsetY(double offsetY)
Sets the y position of the cursor of the drag view image.
|
clear, getContent, getContentTypes, getFiles, getHtml, getImage, getRtf, getString, getSystemClipboard, getUrl, hasContent, hasFiles, hasHtml, hasImage, hasRtf, hasString, hasUrl, setContent
public final Set<TransferMode> getTransferModes()
public void setDragView(Image image, double offsetX, double offsetY)
image
- image to use for the drag viewoffsetX
- x position of the cursor over the imageoffsetY
- y position of the cursor over the imagepublic void setDragView(Image image)
image
- image to use for the drag viewpublic void setDragViewOffsetX(double offsetX)
offsetX
- x position of the cursor over the imagepublic void setDragViewOffsetY(double offsetY)
offsetY
- y position of the cursor over the imagepublic Image getDragView()
public double getDragViewOffsetX()
public double getDragViewOffsetY()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.