Back to index

wims  3.65+svn20090927
Public Member Functions | Private Attributes
rene.util.ImageSelection Class Reference
Inheritance diagram for rene.util.ImageSelection:
Inheritance graph
Collaboration diagram for rene.util.ImageSelection:
Collaboration graph

List of all members.

Public Member Functions

 ImageSelection (Image image)
DataFlavor[] getTransferDataFlavors ()
boolean isDataFlavorSupported (DataFlavor flavor)
Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException,IOException

Private Attributes

Image image

Detailed Description

unknown Class to hold an image for the clipboad, implements the Transferable class properly.

Definition at line 18 of file

Constructor & Destructor Documentation

rene.util.ImageSelection.ImageSelection ( Image  image) [inline]

Definition at line 24 of file

              this.image = image;

Member Function Documentation

Object rene.util.ImageSelection.getTransferData ( DataFlavor  flavor) throws UnsupportedFlavorException,IOException [inline]

Definition at line 41 of file

              if (!DataFlavor.imageFlavor.equals(flavor)) 
                     throw new UnsupportedFlavorException(flavor);
              // else return the payload
              return image;

Definition at line 29 of file

              return new DataFlavor[] {DataFlavor.imageFlavor};

Definition at line 35 of file

              return DataFlavor.imageFlavor.equals(flavor);

Member Data Documentation

Definition at line 22 of file

The documentation for this class was generated from the following file: