public class ImageTransferable extends Object implements Transferable, ClipboardOwner
| Constructor and Description |
|---|
ImageTransferable(BufferedImage img) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getTransferData(DataFlavor flavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor flavor) |
void |
lostOwnership(Clipboard clipboard,
Transferable contents) |
public ImageTransferable(BufferedImage img)
public Object getTransferData(DataFlavor flavor) throws IOException, UnsupportedFlavorException
getTransferData in interface TransferableIOExceptionUnsupportedFlavorExceptionpublic DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface Transferablepublic boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported in interface Transferablepublic void lostOwnership(Clipboard clipboard, Transferable contents)
lostOwnership in interface ClipboardOwnerCopyright © 2021. All rights reserved.