List of usage examples for java.awt.datatransfer Transferable interface-usage
From source file DragGesture.java
public class DragGesture extends JFrame implements DragGestureListener, Transferable { public DragGesture() { setTitle("Drag Gesture"); JLabel left = new JLabel("text"); DragSource ds = new DragSource(); ds.createDefaultDragGestureRecognizer(left, DnDConstants.ACTION_COPY, this);
From source file Main.java
class ImageSelection implements Transferable { private Image image; public ImageSelection(Image image) { this.image = image; }
From source file TransferableColor.java
/**
* This class is used to transfer a Color object via cut-and-paste or
* drag-and-drop. It allows a color to be transfered as a Color object,
* or as a string. Due to a long-standing bug in Java 1.1 and Java 2,
* transferring a color as a string to native Windows applications will
* not work.
From source file ImageSelection.java
class ImageSelection extends TransferHandler implements Transferable { private static final DataFlavor flavors[] = { DataFlavor.imageFlavor }; private Image image;
From source file org.jfree.chart.demo.PDFChartTransferable.java
public class PDFChartTransferable implements Transferable { final DataFlavor pdfFlavor; private JFreeChart chart; private int width; private int height;
From source file org.feistymeow.dragdrop.ListTransferable.java
/**
* Implements a transferable object that understands URI lists as well as java file lists. This is
* useful for implementing file drag and drop that will work across different platforms (such as
* Gnome on Linux).
*
* @author Chris Koeritz
From source file net.sf.jabref.exporter.RtfSelection.java
class RtfSelection implements Transferable { private static final Log LOGGER = LogFactory.getLog(RtfSelection.class); private DataFlavor rtfFlavor; private DataFlavor[] supportedFlavors;
From source file net.sf.jabref.gui.exporter.RtfSelection.java
class RtfSelection implements Transferable { private static final Log LOGGER = LogFactory.getLog(RtfSelection.class); private DataFlavor rtfFlavor; private DataFlavor[] supportedFlavors;
From source file org.kse.gui.dnd.KeyStoreEntryTransferable.java
/** * Transferable for KeyStore entries. <code>DataFlavor.javaFileListFlavor</code> * and <code>DataFlavor.stringFlavor</code> are supported. * */ public class KeyStoreEntryTransferable implements Transferable {
From source file net.sf.keystore_explorer.gui.dnd.KeyStoreEntryTransferable.java
/** * Transferable for KeyStore entries. <code>DataFlavor.javaFileListFlavor</code> * and <code>DataFlavor.stringFlavor</code> are supported. * */ public class KeyStoreEntryTransferable implements Transferable {