public interface DragAndDropService extends HandlerService<Object,DragAndDropHandler<Object>>, SciJavaService
Modifier and Type | Method and Description |
---|---|
default 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. |
default 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.
|
default 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. |
default 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.
|
default Class<DragAndDropHandler<Object>> |
getPluginType()
Gets the type of plugins managed by this service.
|
default Class<Object> |
getType()
Gets the type associated with the object.
|
default boolean |
supports(DragAndDropData data,
Display<?> display)
Checks whether the given
DragAndDropData can be dropped onto the
specified display. |
default boolean |
supports(Object object,
Display<?> display)
Checks whether the given object can be dropped onto the specified display.
|
getHandler, supports
create, filterInstances, getInstance, initialize, objectService
find
getPlugins, getPluginService, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
default 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
default boolean supports(Object object, Display<?> display)
DragAndDropHandler
default 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
default boolean drop(Object data, Display<?> display)
IllegalArgumentException
- if the display and/or data object are
unsupported, or are incompatible with one another.DragAndDropHandler
default DragAndDropHandler<?> getHandler(DragAndDropData data, Display<?> display)
DragAndDropData
dragged onto the specified display.default DragAndDropHandler<?> getHandler(Object object, Display<?> display)
List<DragAndDropHandler<Object>> getInstances()
getInstances
in interface HandlerService<Object,DragAndDropHandler<Object>>
getInstances
in interface SingletonService<DragAndDropHandler<Object>>
default Class<DragAndDropHandler<Object>> getPluginType()
PTService
getPluginType
in interface PTService<DragAndDropHandler<Object>>
Copyright © 2015–2022 SciJava. All rights reserved.