| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: The content associated with this type, or null if there is noneReturns the content stored in this clipboard of the given type, or null if there is no content with this type. |
| public Set | Returns: A non-null immutable set of content types.Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard. |
| public Image | |
| public double | Returns: x position of the cursor over the imageGets the x position of the cursor of the drag view image. |
| public double | Returns: y position of the cursor over the imageGets the y position of the cursor of the drag view image. |
| public Set | |
| public boolean | Returns: true if there is content on this clipboard for this typeTests whether there is any content on this clipboard of the given DataFormat type. |
| public boolean | Returns: True if successful, false if the content fails to be added.The content to put on the clipboard. content)Puts the specified content onto the clipboard. |
| public void | setDragView(Image
image to use for the drag view image)Sets the visual representation of data being transfered in a drag and drop gesture. |
| public void | setDragViewOffsetX(double
x position of the cursor over the image offsetX)Sets the x position of the cursor of the drag view image. |
| public void | setDragViewOffsetY(double
x position of the cursor over the image offsetY)Sets the y position of the cursor of the drag view image. |
| getContent | back to summary |
|---|---|
| public 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.
| |
| getContentTypes | back to summary |
|---|---|
| public Set Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard. This set will always be non-null and immutable. If the Clipboard is subsequently modifed, this returned set is not updated.
| |
| getDragView | back to summary |
|---|---|
| public Image getDragView() Gets the image used as a drag view.
| |
| getDragViewOffsetX | back to summary |
|---|---|
| public double getDragViewOffsetX() Gets the x position of the cursor of the drag view image.
| |
| getDragViewOffsetY | back to summary |
|---|---|
| public double getDragViewOffsetY() Gets the y position of the cursor of the drag view image.
| |
| getTransferModes | back to summary |
|---|---|
| public Set | |
| hasContent | back to summary |
|---|---|
| public boolean hasContent(DataFormat dataFormat) Tests whether there is any content on this clipboard of the given DataFormat type.
| |
| putContent | back to summary |
|---|---|
| public boolean putContent(Pair<DataFormat, Object>... content) Puts the specified content onto the clipboard. Note that all existing content is
cleared from the clipboard prior to the specified content being added.
A
| |
| setDragView | back to summary |
|---|---|
| public void setDragView(Image image) Sets the visual representation of data being transfered in a drag and drop gesture.
| |
| setDragViewOffsetX | back to summary |
|---|---|
| public void setDragViewOffsetX(double offsetX) Sets the x position of the cursor of the drag view image.
| |
| setDragViewOffsetY | back to summary |
|---|---|
| public void setDragViewOffsetY(double offsetY) Sets the y position of the cursor of the drag view image.
| |