org.scijava.ui.dnd
Class AbstractDragAndDropData
java.lang.Object
org.scijava.AbstractContextual
org.scijava.ui.dnd.AbstractDragAndDropData
- All Implemented Interfaces:
- Contextual, DragAndDropData
- Direct Known Subclasses:
- DefaultDragAndDropData
public abstract class AbstractDragAndDropData
- extends AbstractContextual
- implements DragAndDropData
Abstract superclass for DragAndDropData
implementations.
- Author:
- Curtis Rueden
Method Summary |
|
getData(Class<T> type)
Gets the data as an object of the given Java class. |
MIMEType |
getMIMEType(Class<?> type)
Gets the best supported MIME type matching the given Java class. |
boolean |
isSupported(Class<?> type)
Gets whether the data can be provided as an object of the given Java class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDragAndDropData
public AbstractDragAndDropData()
isSupported
public boolean isSupported(Class<?> type)
- Description copied from interface:
DragAndDropData
- Gets whether the data can be provided as an object of the given Java class.
- Specified by:
isSupported
in interface DragAndDropData
getData
public <T> T getData(Class<T> type)
- Description copied from interface:
DragAndDropData
- Gets the data as an object of the given Java class.
- Specified by:
getData
in interface DragAndDropData
getMIMEType
public MIMEType getMIMEType(Class<?> type)
- Description copied from interface:
DragAndDropData
- Gets the best supported MIME type matching the given Java class.
- Specified by:
getMIMEType
in interface DragAndDropData
Copyright © 2009–2014 SciJava. All rights reserved.