com.alee.extended.drag
Class ImageDragHandler

java.lang.Object
  extended by javax.swing.TransferHandler
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class javax.swing.TransferHandler
javax.swing.TransferHandler.DropLocation, javax.swing.TransferHandler.TransferSupport
 
Field Summary
 
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)
           
 
Method Summary
protected  java.awt.datatransfer.Transferable createTransferable(javax.swing.JComponent c)
           
 java.awt.image.BufferedImage getImage()
           
 int getSourceActions(javax.swing.JComponent c)
           
 boolean isDefaultBehavior()
           
 void setDefaultBehavior(boolean defaultBehavior)
           
 void setImage(java.awt.image.BufferedImage image)
           
 
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
 

Constructor Detail

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)
Method Detail

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