public class VectorGraphicsTransferable extends Object implements ClipboardOwner, Transferable
Note: This only works with JDK 1.4 or later.
Constructor and Description |
---|
VectorGraphicsTransferable(Component c)
Create a VectorGraphicsTransferable with the built-in flavor/ExportFileType associations
|
VectorGraphicsTransferable(Component c,
boolean addDefaultAssociations)
Create a VectorGraphicsTransferable.
|
Modifier and Type | Method and Description |
---|---|
void |
addExportFileType(DataFlavor flavor,
ExportFileType type)
Associate a DataFlavor with the ExportFileType
|
Object |
getTransferData(DataFlavor dataFlavor) |
DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(DataFlavor dataFlavor) |
void |
lostOwnership(Clipboard clipboard,
Transferable transferable) |
public VectorGraphicsTransferable(Component c)
c
- The Component whose graphics will be transferedpublic VectorGraphicsTransferable(Component c, boolean addDefaultAssociations)
c
- The Component whose graphics will be transferedaddDefaultAssociations
- Add the standard flavor/ExportFileType associationspublic Object getTransferData(DataFlavor dataFlavor) throws UnsupportedFlavorException, IOException
getTransferData
in interface Transferable
UnsupportedFlavorException
IOException
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface Transferable
public boolean isDataFlavorSupported(DataFlavor dataFlavor)
isDataFlavorSupported
in interface Transferable
public void lostOwnership(Clipboard clipboard, Transferable transferable)
lostOwnership
in interface ClipboardOwner
public void addExportFileType(DataFlavor flavor, ExportFileType type)
Copyright © 2014. All rights reserved.