de.sciss.io
Class AudioFileRegion
java.lang.Object
de.sciss.io.AudioFileRegion
- All Implemented Interfaces:
- java.awt.datatransfer.Transferable, java.io.Serializable, java.lang.Cloneable
public class AudioFileRegion
- extends java.lang.Object
- implements java.io.Serializable, java.lang.Cloneable, java.awt.datatransfer.Transferable
A small class that allows
inter-application drag-and-drop
of regions of audio files.
- Version:
- 0.15, 05-May-06
- Author:
- Hanns Holger Rutz
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
file
public final java.io.File file
region
public final Region region
flavor
public static java.awt.datatransfer.DataFlavor flavor
AudioFileRegion
public AudioFileRegion(java.io.File file,
Region region)
AudioFileRegion
public AudioFileRegion(AudioFile af,
Region region)
AudioFileRegion
public AudioFileRegion(java.io.File file,
Span region)
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a new audio file region which is
equal to this one.
CloneNotSupportedException
is never thrown.
- Overrides:
clone
in class java.lang.Object
- Returns:
- a new audio file region identical to this one
- Throws:
java.lang.CloneNotSupportedException
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
- Specified by:
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
isDataFlavorSupported
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor aFlavor)
- Specified by:
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor aFlavor)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
- Specified by:
getTransferData
in interface java.awt.datatransfer.Transferable
- Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException