public class ImageSelection extends Object implements Transferable, Serializable
DataFlavor.imageFlavor
元信息对应Constructor and Description |
---|
ImageSelection(Image image)
构造
|
Modifier and Type | Method and Description |
---|---|
Object |
getTransferData(DataFlavor flavor)
获取图片
|
DataFlavor[] |
getTransferDataFlavors()
获取元数据类型信息
|
boolean |
isDataFlavorSupported(DataFlavor flavor)
是否支持指定元数据类型
|
public ImageSelection(Image image)
image
- 图片public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor flavor)
isDataFlavorSupported
in interface Transferable
flavor
- 元数据类型public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException
getTransferData
in interface Transferable
flavor
- 元数据类型UnsupportedFlavorException
Copyright © 2024. All rights reserved.