8import java.awt.image.BufferedImage;
9import java.awt.datatransfer.*;
13 private static final DataFlavor flavors[] =
14 {DataFlavor.imageFlavor};
16 private BufferedImage image;
23 public Object
getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException {
24 if (flavor.equals(flavors[0]) ==
false) {
25 throw new UnsupportedFlavorException(flavor);
36 return flavor.equals(flavors[0]);
Object getTransferData(DataFlavor flavor)
boolean isDataFlavorSupported(DataFlavor flavor)
ImageSelection(BufferedImage image)
DataFlavor[] getTransferDataFlavors()