public interface TKClipboard
Modifier and Type | Method and Description |
---|---|
Object |
getContent(DataFormat dataFormat)
Returns the content stored in this clipboard of the given type, or null
if there is no content with this type.
|
Set<DataFormat> |
getContentTypes()
Gets the set of DataFormat types on this Clipboard instance which have
associated data registered on the clipboard.
|
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() |
boolean |
hasContent(DataFormat dataFormat)
Tests whether there is any content on this clipboard of the given DataFormat type.
|
boolean |
putContent(Pair<DataFormat,Object>... content)
Puts the specified content onto the clipboard.
|
void |
setDragView(Image image)
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.
|
void |
setSecurityContext(AccessControlContext ctx)
This method is used to set security context of the Stage.
|
void setSecurityContext(AccessControlContext ctx)
Set<DataFormat> getContentTypes()
boolean putContent(Pair<DataFormat,Object>... content)
NullPointerException
is thrown if either the DataFormat
or the Object
data in the content Pair
is null.content
- The content to put on the clipboard.Object getContent(DataFormat dataFormat)
boolean hasContent(DataFormat dataFormat)
Set<TransferMode> getTransferModes()
void setDragView(Image image)
image
- image to use for the drag viewvoid setDragViewOffsetX(double offsetX)
offsetX
- x position of the cursor over the imagevoid setDragViewOffsetY(double offsetY)
offsetY
- x position of the cursor over the imageImage getDragView()
double getDragViewOffsetX()
double getDragViewOffsetY()
Copyright © 2020. All rights reserved.