java.lang.Object
javafx.scene.input.Clipboard
javafx.scene.input.Dragboard
public final class Dragboard extends Clipboard
A drag and drop specific 
Clipboard.- Since:
- JavaFX 2.0
- 
Method SummaryModifier and Type Method Description ImagegetDragView()Gets the image used as a drag view.doublegetDragViewOffsetX()Gets the x position of the cursor of the drag view image.doublegetDragViewOffsetY()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.voidsetDragView(Image image)Sets the visual representation of data being transfered in a drag and drop gesture.voidsetDragView(Image image, double offsetX, double offsetY)Sets the visual representation of data being transfered in a drag and drop gesture.voidsetDragViewOffsetX(double offsetX)Sets the x position of the cursor of the drag view image.voidsetDragViewOffsetY(double offsetY)Sets the y position of the cursor of the drag view image.Methods declared in class javafx.scene.input.Clipboardclear, getContent, getContentTypes, getFiles, getHtml, getImage, getRtf, getString, getSystemClipboard, getUrl, hasContent, hasFiles, hasHtml, hasImage, hasRtf, hasString, hasUrl, setContent
- 
Method Details- 
getTransferModesGets set of transport modes supported by source of this drag opeation.- Returns:
- set of supported transfer modes
 
- 
setDragViewSets the visual representation of data being transfered in a drag and drop gesture. Uses the given image for the drag view with the offsetX and offsetY specifying cursor position over the image. This method should be called only when starting drag and drop operation in the DRAG_DETECTED handler, calling it at other times doesn't have any effect.- Parameters:
- image- image to use for the drag view
- offsetX- x position of the cursor over the image
- offsetY- y position of the cursor over the image
- Since:
- JavaFX 8.0
 
- 
setDragViewSets the visual representation of data being transfered in a drag and drop gesture. This method should be called only when starting drag and drop operation in the DRAG_DETECTED handler, calling it at other times doesn't have any effect.- Parameters:
- image- image to use for the drag view
- Since:
- JavaFX 8.0
 
- 
setDragViewOffsetXpublic void setDragViewOffsetX(double offsetX)Sets the x position of the cursor of the drag view image. This method should be called only when starting drag and drop operation in the DRAG_DETECTED handler, calling it at other times doesn't have any effect.- Parameters:
- offsetX- x position of the cursor over the image
- Since:
- JavaFX 8.0
 
- 
setDragViewOffsetYpublic void setDragViewOffsetY(double offsetY)Sets the y position of the cursor of the drag view image. This method should be called only when starting drag and drop operation in the DRAG_DETECTED handler, calling it at other times doesn't have any effect.- Parameters:
- offsetY- y position of the cursor over the image
- Since:
- JavaFX 8.0
 
- 
getDragViewGets the image used as a drag view. This method returns meaningful value only when starting drag and drop operation in the DRAG_DETECTED handler, it returns null at other times.- Returns:
- the image used as a drag view
- Since:
- JavaFX 8.0
 
- 
getDragViewOffsetXpublic double getDragViewOffsetX()Gets the x position of the cursor of the drag view image. This method returns meaningful value only when starting drag and drop operation in the DRAG_DETECTED handler, it returns 0 at other times.- Returns:
- x position of the cursor over the image
- Since:
- JavaFX 8.0
 
- 
getDragViewOffsetYpublic double getDragViewOffsetY()Gets the y position of the cursor of the drag view image. This method returns meaningful value only when starting drag and drop operation in the DRAG_DETECTED handler, it returns 0 at other times.- Returns:
- y position of the cursor over the image
- Since:
- JavaFX 8.0
 
 
-