| Modifier and Type | Field and Description |
|---|---|
| private static ClipboardAssistance | |
| private List | dataCache
Cache of the data used for dragboard between setting them and flushing them to system dragboard. |
| private Image | dragImage
An image which is displayed during the drag operation. |
| private double | dragOffsetX
An offset of the image which is displayed during the drag operation. |
| private double | |
| private static final Pattern | |
| private boolean | isCaching
Distinguishes between clipboard and dragboard. |
| private ClipboardAssistance | systemAssistant
Handle to the Glass peer. |
| private Set | transferModesCache
Cache of the transfer modes used for dragboard between setting them and flushing them to system dragboard. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| public static Set | |
| public void | |
| private static Image | |
| public void | |
| public static QuantumClipboard | getClipboardInstance(ClipboardAssistance assistant)
Gets an instance of QuantumClipboard for the given assistant. |
| public Object | getContent(DataFormat dataFormat)
Implements com. Returns the content stored in this clipboard of the given type, or null if there is no content with this type. |
| public Set | getContentTypes()
Implements com. Gets the set of DataFormat types on this Clipboard instance which have associated data registered on the clipboard. |
| pack-priv static ClipboardAssistance | |
| public static QuantumClipboard | getDragboardInstance(ClipboardAssistance assistant, boolean isDragSource)
Gets an instance of QuantumClipboard for the given assistant for usage as dragboard during drag and drop. |
| public Image | getDragView()
Implements com. Gets the image used as a drag view. |
| public double | getDragViewOffsetX()
Implements com. Gets the x position of the cursor of the drag view image. |
| public double | getDragViewOffsetY()
Implements com. Gets the y position of the cursor of the drag view image. |
| public Set | |
| public boolean | hasContent(DataFormat dataFormat)
Implements com. Tests whether there is any content on this clipboard of the given DataFormat type. |
| private String | |
| private boolean | |
| private static ByteBuffer | |
| private static ByteBuffer | |
| public boolean | putContent(Pair<DataFormat, Object>... content)
Implements com. Puts the specified content onto the clipboard. |
| private boolean | |
| private Image | |
| pack-priv static void | |
| public void | setDragView(Image image)
Implements com. Sets the visual representation of data being transfered in a drag and drop gesture. |
| public void | setDragViewOffsetX(double offsetX)
Implements com. Sets the x position of the cursor of the drag view image. |
| public void | setDragViewOffsetY(double offsetY)
Implements com. Sets the y position of the cursor of the drag view image. |
| public void | |
| public static int |
| currentDragboard | back to summary |
|---|---|
| private static ClipboardAssistance currentDragboard | |
| dataCache | back to summary |
|---|---|
| private List<Pair<DataFormat, Object>> dataCache Cache of the data used for dragboard between setting them and flushing them to system dragboard. | |
| dragImage | back to summary |
|---|---|
| private Image dragImage An image which is displayed during the drag operation. Set by the user. | |
| dragOffsetX | back to summary |
|---|---|
| private double dragOffsetX An offset of the image which is displayed during the drag operation. Set by the user. | |
| dragOffsetY | back to summary |
|---|---|
| private double dragOffsetY | |
| findTagIMG | back to summary |
|---|---|
| private static final Pattern findTagIMG | |
| isCaching | back to summary |
|---|---|
| private boolean isCaching Distinguishes between clipboard and dragboard. This is needed because dragboard's flush() starts DnD operation so it mustn't be called too early. | |
| systemAssistant | back to summary |
|---|---|
| private ClipboardAssistance systemAssistant Handle to the Glass peer. | |
| transferModesCache | back to summary |
|---|---|
| private Set<TransferMode> transferModesCache Cache of the transfer modes used for dragboard between setting them and flushing them to system dragboard. | |
| QuantumClipboard | back to summary |
|---|---|
| private QuantumClipboard() Disallow direct creation of QuantumClipboard | |
| clearCache | back to summary |
|---|---|
| private void clearCache() | |
| clearDragView | back to summary |
|---|---|
| private void clearDragView() | |
| clipboardActionsToTransferModes | back to summary |
|---|---|
| public static Set | |
| close | back to summary |
|---|---|
| public void close() | |
| convertObjectToImage | back to summary |
|---|---|
| private static Image convertObjectToImage(Object obj) | |
| flush | back to summary |
|---|---|
| public void flush() | |
| getClipboardInstance | back to summary |
|---|---|
| public static QuantumClipboard getClipboardInstance(ClipboardAssistance assistant) Gets an instance of QuantumClipboard for the given assistant. This may be a new instance after each call. | |
| getContent | back to summary |
|---|---|
| public Object getContent(DataFormat dataFormat) Implements com. Doc from com. 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 Implements com. Doc from com. 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.
| |
| getCurrentDragboard | back to summary |
|---|---|
| pack-priv static ClipboardAssistance getCurrentDragboard() | |
| getDragboardInstance | back to summary |
|---|---|
| public static QuantumClipboard getDragboardInstance(ClipboardAssistance assistant, boolean isDragSource) Gets an instance of QuantumClipboard for the given assistant for usage as dragboard during drag and drop. It doesn't flush the data implicitly and caches them until flush() is called. This may be a new instance after each call. | |
| getDragView | back to summary |
|---|---|
| public Image getDragView() Implements com. Doc from com. Gets the image used as a drag view.
| |
| getDragViewOffsetX | back to summary |
|---|---|
| public double getDragViewOffsetX() Implements com. Doc from com. Gets the x position of the cursor of the drag view image.
| |
| getDragViewOffsetY | back to summary |
|---|---|
| public double getDragViewOffsetY() Implements com. Doc from com. Gets the y position of the cursor of the drag view image.
| |
| getTransferModes | back to summary |
|---|---|
| public Set Implements com.
| |
| hasContent | back to summary |
|---|---|
| public boolean hasContent(DataFormat dataFormat) Implements com. Doc from com. Tests whether there is any content on this clipboard of the given DataFormat type.
| |
| parseIMG | back to summary |
|---|---|
| private String parseIMG(Object data) | |
| placeImage | back to summary |
|---|---|
| private boolean placeImage(final Image image) | |
| prepareImage | back to summary |
|---|---|
| private static ByteBuffer prepareImage(Image image) | |
| prepareOffset | back to summary |
|---|---|
| private static ByteBuffer prepareOffset(double offsetX, double offsetY) | |
| putContent | back to summary |
|---|---|
| public boolean putContent(Pair<DataFormat, Object>... content) Implements com. Doc from com. 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
| |
| putContentToPeer | back to summary |
|---|---|
| private boolean putContentToPeer(Pair<DataFormat, Object>... content) | |
| readImage | back to summary |
|---|---|
| private Image readImage() | |
| releaseCurrentDragboard | back to summary |
|---|---|
| pack-priv static void releaseCurrentDragboard() | |
| setDragView | back to summary |
|---|---|
| public void setDragView(Image image) Implements com. Doc from com. Sets the visual representation of data being transfered in a drag and drop gesture.
| |
| setDragViewOffsetX | back to summary |
|---|---|
| public void setDragViewOffsetX(double offsetX) Implements com. Doc from com. Sets the x position of the cursor of the drag view image.
| |
| setDragViewOffsetY | back to summary |
|---|---|
| public void setDragViewOffsetY(double offsetY) Implements com. Doc from com. Sets the y position of the cursor of the drag view image.
| |
| setSupportedTransferMode | back to summary |
|---|---|
| public void setSupportedTransferMode(Set<TransferMode> tm) | |
| transferModesToClipboardActions | back to summary |
|---|---|
| public static int transferModesToClipboardActions(final Set<TransferMode> tms) | |