|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragAndDropService
Interface for service that handles drag and drop events.
Method Summary | |
---|---|
boolean |
drop(DragAndDropData data,
Display<?> display)
Performs a drag-and-drop operation in the given display with the specified DragAndDropData , using the first available compatible handler. |
boolean |
drop(Object data,
Display<?> display)
Performs a drag-and-drop operation in the given display with the specified data object, using the first available compatible handler. |
DragAndDropHandler<?> |
getHandler(DragAndDropData data,
Display<?> display)
Gets the drag-and-drop handler which will be used to handle the given DragAndDropData dragged onto the specified display. |
DragAndDropHandler<?> |
getHandler(Object object,
Display<?> display)
Gets the drag-and-drop handler which will be used to handle the given object dragged onto the specified display. |
List<DragAndDropHandler<Object>> |
getInstances()
Gets the list of available drag-and-drop handlers, which are used to perform drag-and-drop operations. |
boolean |
supports(DragAndDropData data,
Display<?> display)
Checks whether the given DragAndDropData can be dropped onto the
specified display. |
boolean |
supports(Object object,
Display<?> display)
Checks whether the given object can be dropped onto the specified display. |
Methods inherited from interface org.scijava.plugin.HandlerService |
---|
getHandler, supports |
Methods inherited from interface org.scijava.plugin.SingletonService |
---|
getInstance |
Methods inherited from interface org.scijava.plugin.PTService |
---|
getPlugins, getPluginService, getPluginType |
Methods inherited from interface org.scijava.service.Service |
---|
initialize, registerEventHandlers |
Methods inherited from interface org.scijava.Contextual |
---|
context, getContext, setContext |
Methods inherited from interface org.scijava.Prioritized |
---|
getPriority, setPriority |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.scijava.plugin.HasPluginInfo |
---|
getInfo, setInfo |
Methods inherited from interface org.scijava.Disposable |
---|
dispose |
Methods inherited from interface org.scijava.Typed |
---|
getType |
Method Detail |
---|
boolean supports(DragAndDropData data, Display<?> display)
DragAndDropData
can be dropped onto the
specified display. A (data, display) pair is deemed compatible if a
compatible handler exists for them.
DragAndDropHandler
boolean supports(Object object, Display<?> display)
DragAndDropHandler
boolean drop(DragAndDropData data, Display<?> display)
DragAndDropData
, using the first available compatible handler.
IllegalArgumentException
- if the display and/or data object are
unsupported, or are incompatible with one another.DragAndDropHandler
boolean drop(Object data, Display<?> display)
IllegalArgumentException
- if the display and/or data object are
unsupported, or are incompatible with one another.DragAndDropHandler
DragAndDropHandler<?> getHandler(DragAndDropData data, Display<?> display)
DragAndDropData
dragged onto the specified display.
DragAndDropHandler<?> getHandler(Object object, Display<?> display)
List<DragAndDropHandler<Object>> getInstances()
getInstances
in interface HandlerService<Object,DragAndDropHandler<Object>>
getInstances
in interface SingletonService<DragAndDropHandler<Object>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |