List of usage examples for java.awt.datatransfer Transferable interface-usage
From source file JLabelDragSource.java
class JLabelTransferable implements Transferable { public JLabelTransferable(JLabel label) { this.label = label; } // Implementation of the Transferable interface
From source file ImageTransferTest.java
/** * This class is a wrapper for the data transfer of image objects. */ class ImageTransferable implements Transferable { /** * Constructs the selection.
From source file com.projity.pm.graphic.spreadsheet.common.transfer.NodeListTransferable.java
/** * */ public class NodeListTransferable implements Transferable { private static final int NODE_LIST = 0; private static final int STRING = 1;
From source file TreeDragTest.java
class TransferableTreeNode implements Transferable { public static DataFlavor TREE_PATH_FLAVOR = new DataFlavor(TreePath.class, "Tree Path"); DataFlavor flavors[] = { TREE_PATH_FLAVOR };
From source file TreeTester.java
class TransferableTreeNode extends DefaultMutableTreeNode implements Transferable { final static int TREE = 0; final static int STRING = 1; final static int PLAIN_TEXT = 1;
From source file ScribbleDragAndDrop.java
class Scribble implements Shape, Transferable, Serializable, Cloneable { protected double[] points = new double[64]; // The scribble data protected int numPoints = 0; // The current number of points double maxX = Double.NEGATIVE_INFINITY; // The bounding box
From source file FileTreeDragSource.java
class FileListTransferable implements Transferable { public FileListTransferable(File[] files) { fileList = new ArrayList(); for (int i = 0; i < files.length; i++) { fileList.add(files[i]); }
From source file TransferableScribblePane.java
/** * This class implements the Transferable interface for PolyLine objects. It * also defines a DataFlavor used to describe this data type. */ class TransferablePolyLine implements Transferable { public static DataFlavor FLAVOR = new DataFlavor(PolyLine.class, "PolyLine");
From source file DragDropTreeExample.java
class FileListTransferable implements Transferable { public FileListTransferable(File[] files) { fileList = new ArrayList(); for (int i = 0; i < files.length; i++) { fileList.add(files[i]); }