Modifier and Type | Field and Description |
---|---|
private boolean |
dataAccessRestricted
Whether access to the data requires a permission.
|
Constructor and Description |
---|
Dragboard(TKClipboard peer) |
Modifier and Type | Method and Description |
---|---|
(package private) static Dragboard |
createDragboard(TKClipboard peer) |
(package private) java.lang.Object |
getContentImpl(DataFormat dataFormat)
Getting content overridable by internal subclasses.
|
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.
|
(package private) TKClipboard |
getPeer() |
java.util.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, contentPut, getContent, getContentTypes, getFiles, getHtml, getImage, getRtf, getString, getSystemClipboard, getUrl, hasContent, hasFiles, hasHtml, hasImage, hasRtf, hasString, hasUrl, setContent
private boolean dataAccessRestricted
java.lang.Object getContentImpl(DataFormat dataFormat)
Clipboard
getContentImpl
in class Clipboard
public final java.util.Set<TransferMode> getTransferModes()
TKClipboard getPeer()
static Dragboard createDragboard(TKClipboard peer)
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()