|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.plugin.AbstractTypedPlugin<D>
org.scijava.plugin.AbstractHandlerPlugin<D>
org.scijava.ui.dnd.AbstractDragAndDropHandler<D>
public abstract class AbstractDragAndDropHandler<D>
Abstract superclass for DragAndDropHandlers.
| Constructor Summary | |
|---|---|
AbstractDragAndDropHandler()
|
|
| Method Summary | |
|---|---|
protected void |
check(D dataObject,
Display<?> display)
Throws IllegalArgumentException if (data, display) pair is
incompatible. |
D |
convertData(DragAndDropData data)
Converts the given DragAndDropData to the type of data object
supported by this handler. |
protected D |
convertDataUnchecked(DragAndDropData data)
Converts the given data to this handler's native data type, without verifying compatibility first. |
D |
convertObject(Object object)
Converts the given object to the type of data object supported by this handler. |
protected D |
convertObjectUnchecked(Object object)
Converts the given object to this handler's native data type, without verifying compatibility first. |
boolean |
dropData(DragAndDropData data,
Display<?> display)
Performs a drop operation with the given data in the specified Display. |
boolean |
dropObject(Object object,
Display<?> display)
Performs a drop operation with the given data in the specified Display. |
boolean |
supports(D dataObject,
Display<?> display)
Gets whether this handler supports dropping the given data object onto the specified display. |
boolean |
supportsData(DragAndDropData data)
Gets whether this handler supports dropping the given DragAndDropData onto a compatible display. |
boolean |
supportsData(DragAndDropData data,
Display<?> display)
Gets whether this handler supports dropping the given DragAndDropData onto the specified display. |
boolean |
supportsDisplay(Display<?> display)
Gets whether this handler supports dropping an assumed-to-be-compatible data object onto the given Display. |
boolean |
supportsObject(Object object)
Gets whether this handler supports dropping the given object onto a compatible display. |
boolean |
supportsObject(Object object,
Display<?> display)
Gets whether this handler supports dropping the given object onto the specified display. |
| Methods inherited from class org.scijava.plugin.AbstractTypedPlugin |
|---|
supports |
| Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
|---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
| Methods inherited from class org.scijava.AbstractContextual |
|---|
context, getContext, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.scijava.ui.dnd.DragAndDropHandler |
|---|
drop, supports |
| 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.Typed |
|---|
getType |
| Constructor Detail |
|---|
public AbstractDragAndDropHandler()
| Method Detail |
|---|
public boolean supports(D dataObject,
Display<?> display)
DragAndDropHandler
supports in interface DragAndDropHandler<D>public boolean supportsData(DragAndDropData data)
DragAndDropHandlerDragAndDropData onto a compatible display.
supportsData in interface DragAndDropHandler<D>
public boolean supportsData(DragAndDropData data,
Display<?> display)
DragAndDropHandlerDragAndDropData onto the specified display.
supportsData in interface DragAndDropHandler<D>public boolean supportsObject(Object object)
DragAndDropHandler
supportsObject in interface DragAndDropHandler<D>
public boolean supportsObject(Object object,
Display<?> display)
DragAndDropHandler
supportsObject in interface DragAndDropHandler<D>public boolean supportsDisplay(Display<?> display)
DragAndDropHandlerDisplay.
supportsDisplay in interface DragAndDropHandler<D>public D convertData(DragAndDropData data)
DragAndDropHandlerDragAndDropData to the type of data object
supported by this handler.
convertData in interface DragAndDropHandler<D>public D convertObject(Object object)
DragAndDropHandler
convertObject in interface DragAndDropHandler<D>
public boolean dropData(DragAndDropData data,
Display<?> display)
DragAndDropHandlerDisplay.
dropData in interface DragAndDropHandler<D>
public boolean dropObject(Object object,
Display<?> display)
DragAndDropHandlerDisplay.
dropObject in interface DragAndDropHandler<D>
protected void check(D dataObject,
Display<?> display)
IllegalArgumentException if (data, display) pair is
incompatible.
protected D convertDataUnchecked(DragAndDropData data)
protected D convertObjectUnchecked(Object object)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||