## org.das2.graph.dnd.TransferableRenderer

## TransferableRenderer( org.das2.graph.Renderer renderer )

Creates a new instance of TransferableRenderer

## RENDERER_FLAVOR

## getTransferData

getTransferData( java.awt.datatransfer.DataFlavor flavor ) → Object

Returns an object which represents the data to be transferred. The class of the object returned is defined by the representation class of the flavor.

### Parameters

flavor - the requested flavor for the data

### Returns:

java.lang.Object

### See Also:

DataFlavor#getRepresentationClass
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getTransferDataFlavors

getTransferDataFlavors( ) → java.awt.datatransfer.DataFlavor[]

Returns an array of DataFlavor objects indicating the flavors the data can be provided in. The array should be ordered according to preference for providing the data (from most richly descriptive to least descriptive).

### Returns:

an array of data flavors in which this data can be transferred
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## isDataFlavorSupported

isDataFlavorSupported( java.awt.datatransfer.DataFlavor flavor ) → boolean

Returns whether or not the specified data flavor is supported for this object.

### Parameters

flavor - the requested flavor for the data

### Returns:

boolean indicating whether or not the data flavor is supported
[search for examples] [view on GitHub] [view on old javadoc] [view source]