com.alee.extended.drag
Class ImageDragHandler
java.lang.Object
javax.swing.TransferHandler
com.alee.extended.drag.ImageDragHandler
- All Implemented Interfaces:
- java.io.Serializable
public class ImageDragHandler
- extends javax.swing.TransferHandler
User: mgarin Date: 19.01.12 Time: 15:34
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.TransferHandler |
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport |
Fields inherited from class javax.swing.TransferHandler |
COPY, COPY_OR_MOVE, LINK, MOVE, NONE |
Constructor Summary |
ImageDragHandler(javax.swing.JComponent component,
java.awt.image.BufferedImage image)
|
ImageDragHandler(javax.swing.JComponent component,
java.awt.Image image)
|
ImageDragHandler(javax.swing.JComponent component,
javax.swing.ImageIcon icon)
|
Methods inherited from class javax.swing.TransferHandler |
canImport, canImport, exportAsDrag, exportDone, exportToClipboard, getCopyAction, getCutAction, getPasteAction, getVisualRepresentation, importData, importData |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageDragHandler
public ImageDragHandler(javax.swing.JComponent component,
javax.swing.ImageIcon icon)
ImageDragHandler
public ImageDragHandler(javax.swing.JComponent component,
java.awt.Image image)
ImageDragHandler
public ImageDragHandler(javax.swing.JComponent component,
java.awt.image.BufferedImage image)
getImage
public java.awt.image.BufferedImage getImage()
setImage
public void setImage(java.awt.image.BufferedImage image)
isDefaultBehavior
public boolean isDefaultBehavior()
setDefaultBehavior
public void setDefaultBehavior(boolean defaultBehavior)
getSourceActions
public int getSourceActions(javax.swing.JComponent c)
- Overrides:
getSourceActions
in class javax.swing.TransferHandler
createTransferable
protected java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
- Overrides:
createTransferable
in class javax.swing.TransferHandler