org.jmol.export.image
public class ImageSelection extends Object implements Transferable
Image
into the clipboard.Modifier and Type | Field and Description |
---|---|
private Image |
image
The image to transfer into the clipboard.
|
private String |
text |
Constructor and Description |
---|
ImageSelection(Image image)
Constructs a
ImageSelection . |
ImageSelection(String text)
Constructs a
ImageSelection . |
Modifier and Type | Method and Description |
---|---|
static String |
getClipboardText()
Get the String residing on the clipboard.
|
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. |
private Image image
private String text
public ImageSelection(Image image)
ImageSelection
.image
- The real Image.public ImageSelection(String text)
ImageSelection
.text
- The text to transferpublic static void setClipboard(Image image)
image
into the clipboard.image
- Image to transfer into the clipboard.public static void setClipboard(String text)
text
into the clipboard.text
- to transfer into the clipboard.public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
UnsupportedFlavorException
IOException
public static String getClipboardText()