Uses of Interface
java.awt.datatransfer.FlavorMap
Package
Description
Provides interfaces and classes for transferring data between and within
applications.
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
-
Uses of FlavorMap in java.awt.datatransfer
Modifier and TypeInterfaceDescriptioninterface
A FlavorMap which relaxes the traditional 1-to-1 restriction of a Map.Modifier and TypeClassDescriptionfinal class
The SystemFlavorMap is a configurable map between "natives" (Strings), which correspond to platform-specific data formats, and "flavors" (DataFlavors), which correspond to platform-independent MIME types.Modifier and TypeMethodDescriptionstatic FlavorMap
SystemFlavorMap.getDefaultFlavorMap()
Returns the default FlavorMap for this thread's ClassLoader. -
Uses of FlavorMap in java.awt.dnd
Modifier and TypeMethodDescriptionDragSource.getFlavorMap()
This method returns theFlavorMap
for thisDragSource
.DropTarget.getFlavorMap()
Gets theFlavorMap
associated with thisDropTarget
.Modifier and TypeMethodDescriptionvoid
DropTarget.setFlavorMap
(FlavorMap fm) Sets theFlavorMap
associated with thisDropTarget
.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.void
DragSource.startDrag
(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theImage
to drag, the offset of theImage
origin from the hotspot of theCursor
at the instant of the trigger, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.ModifierConstructorDescriptionDropTarget
(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm) Creates a new DropTarget given theComponent
to associate itself with, anint
representing the default acceptable action(s) to support, aDropTargetListener
to handle event processing, aboolean
indicating if theDropTarget
is currently accepting drops, and aFlavorMap
to use (or null for the defaultFlavorMap
).