Class FigureTransferable
- java.lang.Object
-
- com.bc.ceres.swing.figure.support.FigureTransferable
-
- All Implemented Interfaces:
Transferable
public class FigureTransferable extends Object implements Transferable
-
-
Field Summary
Fields Modifier and Type Field Description static DataFlavor
FIGURES_DATA_FLAVOR
-
Constructor Summary
Constructors Constructor Description FigureTransferable(Figure[] figures, boolean snapshot)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Object
getTransferData(DataFlavor flavor)
DataFlavor[]
getTransferDataFlavors()
boolean
isDataFlavorSupported(DataFlavor flavor)
boolean
isSnapshot()
-
-
-
Field Detail
-
FIGURES_DATA_FLAVOR
public static final DataFlavor FIGURES_DATA_FLAVOR
-
-
Constructor Detail
-
FigureTransferable
public FigureTransferable(Figure[] figures, boolean snapshot)
-
-
Method Detail
-
isSnapshot
public boolean isSnapshot()
-
getTransferDataFlavors
public DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
public boolean isDataFlavorSupported(DataFlavor flavor)
- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
public Object getTransferData(DataFlavor flavor) throws UnsupportedFlavorException, IOException
- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-
dispose
public void dispose()
-
-