ImageTransfer provides a platform specific mechanism
for converting an Image represented as a java ImageData to a
platform specific representation of the data and vice versa.
An example of a java ImageData is shown below:
Image image = new Image(display, "C:\\temp\\img1.gif");
ImageData imgData = image.getImageData();
Transfer
| Modifier and Type | Field and Description |
|---|---|
| private static ImageTransfer | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int | |
| private static final String | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| public static ImageTransfer | Returns: the singleton instance of the ImageTransfer classReturns the singleton instance of the ImageTransfer class. |
| protected int[] | getTypeIds()
Implements abstract org. |
| protected String[] | getTypeNames()
Implements abstract org. |
| public void | javaToNative(Object
a java object, TransferData ImageData containing the ImageData to be convertedan empty transferData)TransferData object that will
be filled in on return with the platform specific format of the dataOverrides org. javaToNative converts an ImageData object represented
by java ImageData to a platform specific representation.
|
| public Object | Returns: a javaImageData of the image if the conversion was successful;
otherwise nullthe platform specific representation of the data to be converted transferData)Overrides org. nativeToJava converts a platform specific
representation of an image to java ImageData.
|
| protected boolean | validate(Object
a java representation of the data to be converted object)Overrides org. |
| _instance | back to summary |
|---|---|
| private static ImageTransfer _instance | |
| BMP | back to summary |
|---|---|
| private static final String BMP | |
| BMP_ID | back to summary |
|---|---|
| private static final int BMP_ID | |
| EPS | back to summary |
|---|---|
| private static final String EPS | |
| EPS_ID | back to summary |
|---|---|
| private static final int EPS_ID | |
| JPEG | back to summary |
|---|---|
| private static final String JPEG | |
| JPEG_ID | back to summary |
|---|---|
| private static final int JPEG_ID | |
| PCX | back to summary |
|---|---|
| private static final String PCX | |
| PCX_ID | back to summary |
|---|---|
| private static final int PCX_ID | |
| PNG | back to summary |
|---|---|
| private static final String PNG | |
| PNG_ID | back to summary |
|---|---|
| private static final int PNG_ID | |
| PPM | back to summary |
|---|---|
| private static final String PPM | |
| PPM_ID | back to summary |
|---|---|
| private static final int PPM_ID | |
| RGB | back to summary |
|---|---|
| private static final String RGB | |
| RGB_ID | back to summary |
|---|---|
| private static final int RGB_ID | |
| TGA | back to summary |
|---|---|
| private static final String TGA | |
| TGA_ID | back to summary |
|---|---|
| private static final int TGA_ID | |
| XBM | back to summary |
|---|---|
| private static final String XBM | |
| XBM_ID | back to summary |
|---|---|
| private static final int XBM_ID | |
| XPM | back to summary |
|---|---|
| private static final String XPM | |
| XPM_ID | back to summary |
|---|---|
| private static final int XPM_ID | |
| XV | back to summary |
|---|---|
| private static final String XV | |
| XV_ID | back to summary |
|---|---|
| private static final int XV_ID | |
| ImageTransfer | back to summary |
|---|---|
| private ImageTransfer() | |
| checkImage | back to summary |
|---|---|
| pack-priv boolean checkImage(Object object) | |
| getInstance | back to summary |
|---|---|
| public static ImageTransfer getInstance() Returns the singleton instance of the ImageTransfer class.
| |
| getTypeIds | back to summary |
|---|---|
| protected int[] getTypeIds() Implements abstract org. Doc from org. Returns the platform specific ids of the data types that can be converted using this transfer agent.
| |
| getTypeNames | back to summary |
|---|---|
| protected String[] getTypeNames() Implements abstract org. Doc from org. Returns the platform specific names of the data types that can be converted using this transfer agent. | |
| javaToNative | back to summary |
|---|---|
| public void javaToNative(Object object, TransferData transferData) Overrides org. This implementation of
| |
| nativeToJava | back to summary |
|---|---|
| public Object nativeToJava(TransferData transferData) Overrides org. This implementation of
| |
| validate | back to summary |
|---|---|
| protected boolean validate(Object object) Overrides org. Doc from org. Test that the object is of the correct format for this Transfer class. | |