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
[legend]
Collaboration diagram for rene.util.ImageSelection:
Collaboration graph
[legend]

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

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

Definition at line 18 of file ImageSelection.java.


Constructor & Destructor Documentation

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

Definition at line 24 of file ImageSelection.java.

                                          {
              this.image = image;
       }

Member Function Documentation

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

Definition at line 41 of file ImageSelection.java.

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

Definition at line 29 of file ImageSelection.java.

       {
              return new DataFlavor[] {DataFlavor.imageFlavor};
       }

Definition at line 35 of file ImageSelection.java.

       {
              return DataFlavor.imageFlavor.equals(flavor);
       }

Member Data Documentation

Definition at line 22 of file ImageSelection.java.


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