org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage Class Reference

Inheritance diagram for org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage:

Inheritance graph
[legend]
Collaboration diagram for org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage:

Collaboration graph
[legend]

Public Member Functions

 ClipboardImage (Image image)
DataFlavor[] getTransferDataFlavors ()
boolean isDataFlavorSupported (DataFlavor flavor)
Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException

Private Attributes

Image image

Detailed Description

Class used to store Images in the clipboard

Definition at line 2689 of file CallScilabBridge.java.


Constructor & Destructor Documentation

org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage::ClipboardImage ( Image  image  )  [inline]

Default constructor

Parameters:
image the image

Definition at line 2696 of file CallScilabBridge.java.

02696                                            {
02697             this.image = image;
02698         }


Member Function Documentation

DataFlavor [] org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage::getTransferDataFlavors (  )  [inline]

DataFlavors of this transferable

Returns:
the DataFlavors accepeted

Definition at line 2704 of file CallScilabBridge.java.

02704                                                      {
02705             return new DataFlavor[]{DataFlavor.imageFlavor};
02706         }

boolean org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage::isDataFlavorSupported ( DataFlavor  flavor  )  [inline]

Test supproted DataFlavors

Parameters:
flavor the flavor to test
Returns:
true if the flavor is supported

Definition at line 2713 of file CallScilabBridge.java.

02713                                                                 {
02714             return DataFlavor.imageFlavor.equals(flavor);
02715         }

Object org::scilab::modules::gui::bridge::CallScilabBridge::ClipboardImage::getTransferData ( DataFlavor  flavor  )  throws UnsupportedFlavorException [inline]

Get the contents of this transferable

Parameters:
flavor the flavor to test
Returns:
the contents
Exceptions:
UnsupportedFlavorException if the flavor is not supported by this transferable

Definition at line 2723 of file CallScilabBridge.java.

References image.

02723                                                                                            {
02724             if (!DataFlavor.imageFlavor.equals(flavor)) {
02725                 throw new UnsupportedFlavorException(flavor);
02726             }
02727             return image;
02728         }


Field Documentation

Definition at line 2690 of file CallScilabBridge.java.

Referenced by getTransferData().


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

Generated on Tue Sep 9 18:24:28 2008 for Scilab [trunk] by  doxygen 1.5.5