public class DdndTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.image.BufferedImage |
dragImage |
(package private) java.awt.Point |
dragOffset |
(package private) java.awt.datatransfer.DataFlavor[] |
flavors |
(package private) javax.swing.tree.TreePath |
path |
static java.awt.datatransfer.DataFlavor |
TREE_PATH_FLAVOR |
Constructor and Description |
---|
DdndTransferable(javax.swing.tree.TreePath tp) |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
getDragImage() |
java.awt.Point |
getDragImageOffset() |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor) |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors() |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor) |
void |
setDragImage(java.awt.image.BufferedImage dragImg,
java.awt.Point imgOffset) |
java.awt.image.BufferedImage dragImage
java.awt.Point dragOffset
public static final java.awt.datatransfer.DataFlavor TREE_PATH_FLAVOR
java.awt.datatransfer.DataFlavor[] flavors
javax.swing.tree.TreePath path
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public void setDragImage(java.awt.image.BufferedImage dragImg, java.awt.Point imgOffset)
public java.awt.image.BufferedImage getDragImage()
public java.awt.Point getDragImageOffset()
Copyright © 2013. All Rights Reserved.