|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmol.export.image.ImageSelection
public class ImageSelection
This class is used to transfer an Image
into the clipboard.
Field Summary | |
---|---|
private Image |
image
The image to transfer into the clipboard. |
private 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. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Image image
private String text
Constructor Detail |
---|
public ImageSelection(Image image)
ImageSelection
.
image
- The real Image.public ImageSelection(String text)
ImageSelection
.
text
- The text to transferMethod Detail |
---|
public 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |