java.awt.datatransfer.Transferable
public class ImageSelection
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Constructor | Description |
---|---|
ImageSelection(java.awt.Image image) |
Modifier and Type | Method | Description |
---|---|---|
static java.awt.image.BufferedImage |
createScreenImage(int dx,
int dy) |
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
|
void |
toClipboard() |
|
static void |
toClipboard(java.awt.Image image) |
public static java.awt.image.BufferedImage createScreenImage(int dx, int dy)
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public void toClipboard()
public static void toClipboard(java.awt.Image image)