org.jhotdraw.gui.datatransfer
Class AbstractTransferable

java.lang.Object
  extended by org.jhotdraw.gui.datatransfer.AbstractTransferable
All Implemented Interfaces:
java.awt.datatransfer.Transferable
Direct Known Subclasses:
InputStreamTransferable

public abstract class AbstractTransferable
extends java.lang.Object
implements java.awt.datatransfer.Transferable

Base class for transferable objects.

Version:
$Id: AbstractTransferable.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer

Field Summary
private  java.awt.datatransfer.DataFlavor[] flavors
           
 
Constructor Summary
AbstractTransferable(java.awt.datatransfer.DataFlavor flavor)
          Creates a new instance.
AbstractTransferable(java.awt.datatransfer.DataFlavor[] flavors)
          Creates a new instance.
 
Method Summary
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
           
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.datatransfer.Transferable
getTransferData
 

Field Detail

flavors

private java.awt.datatransfer.DataFlavor[] flavors
Constructor Detail

AbstractTransferable

public AbstractTransferable(java.awt.datatransfer.DataFlavor flavor)
Creates a new instance.


AbstractTransferable

public AbstractTransferable(java.awt.datatransfer.DataFlavor[] flavors)
Creates a new instance.

Method Detail

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor flavor)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable