@Override
    public Object getTransferData(DataFlavor f)
            throws UnsupportedFlavorException, IOException {
        if (f.equals(DataFlavor.imageFlavor) == false) {
            throw new UnsupportedFlavorException(f);
        }
        return this.img;
    }