|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.artoflife.util.dnd.ThumbnailIconDropTargetListener
|
+--org.artoflife.gui.population.PopulationViewDropTargetListener
A lot of this is copied from TransferHandler$DropHandler, the default Swing drop handler, modified to handle the distinction between MOVE within a PopulationView and COPY from another one.
| Field Summary |
| Fields inherited from class org.artoflife.util.dnd.ThumbnailIconDropTargetListener |
lastDragImageBounds, lastMousePosition, thumbnailIcon |
| Constructor Summary | |
PopulationViewDropTargetListener()
|
|
| Method Summary | |
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
Initialise everything here so can paint icon while tracking in dragOver. |
void |
dragExit(java.awt.dnd.DropTargetEvent dte)
Must call this from subclass dragExit() implementation. |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde)
If got a thumbnail icon to paint then track cursor with it. |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde)
Must call this from subclass drop() implementation. |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PopulationViewDropTargetListener()
| Method Detail |
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
ThumbnailIconDropTargetListenerMust call this from subclasses after accepting the drag else you will see "No current drop operation" exceptions from the underlying AWT DnD implementation.
dragEnter in interface java.awt.dnd.DropTargetListenerdragEnter in class ThumbnailIconDropTargetListenerDropTargetListener.dragEnter(DropTargetDragEvent)public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
ThumbnailIconDropTargetListenerMust call this from subclass dragOver implementations.
dragOver in interface java.awt.dnd.DropTargetListenerdragOver in class ThumbnailIconDropTargetListenerDropTargetListener.dragOver(DropTargetDragEvent)public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
DropTargetListener.dropActionChanged(DropTargetDragEvent)public void dragExit(java.awt.dnd.DropTargetEvent dte)
ThumbnailIconDropTargetListener
dragExit in interface java.awt.dnd.DropTargetListenerdragExit in class ThumbnailIconDropTargetListenerDropTargetListener.dragExit(DropTargetEvent)public void drop(java.awt.dnd.DropTargetDropEvent dtde)
ThumbnailIconDropTargetListener
drop in interface java.awt.dnd.DropTargetListenerdrop in class ThumbnailIconDropTargetListenerDropTargetListener.drop(DropTargetDropEvent)
|
artoflife pre0.1.0-dev | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||