org.scijava.ui.dnd
Class AbstractDragAndDropData

java.lang.Object
  extended by org.scijava.AbstractContextual
      extended by 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

Constructor Summary
AbstractDragAndDropData()
           
 
Method Summary
<T> T
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 org.scijava.AbstractContextual
context, getContext, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.scijava.ui.dnd.DragAndDropData
getData, getMIMETypes, isSupported
 

Constructor Detail

AbstractDragAndDropData

public AbstractDragAndDropData()
Method Detail

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.