org.jmol.export.image
public class ImageSelection extends Object implements Transferable
| Field Summary | |
|---|---|
| Image | image
The image to transfer into the clipboard. |
| String | text |
| Constructor Summary | |
|---|---|
| ImageSelection(Image image)
Constructs a ImageSelection.
| |
| ImageSelection(String text)
Constructs a ImageSelection.
| |
| Method Summary | |
|---|---|
| static String | getClipboardText()
Get the String residing on the clipboard.
from http://www.javapractices.com/Topic82.cjp |
| Object | getTransferData(DataFlavor flavor) |
| DataFlavor[] | getTransferDataFlavors() |
| boolean | isDataFlavorSupported(DataFlavor flavor) |
| static void | setClipboard(Image image)
Transfers image into the clipboard.
|
| static void | setClipboard(String text)
Transfers text into the clipboard.
|
ImageSelection.
Parameters: image The real Image.
ImageSelection.
Parameters: text The text to transfer
Returns: any text found on the Clipboard; if none found, return an empty String.
image into the clipboard.
Parameters: image Image to transfer into the clipboard.
text into the clipboard.
Parameters: text to transfer into the clipboard.