Changeset 246:fd9c62a2998e for dwt/dnd/ImageTransfer.d
- Timestamp:
- 07/01/08 04:15:59 (6 months ago)
- Files:
-
- dwt/dnd/ImageTransfer.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/ImageTransfer.d
r237 r246 1 1 /******************************************************************************* 2 * Copyright (c) 2007 IBM Corporation and others.2 * Copyright (c) 2007, 2008 IBM Corporation and others. 3 3 * All rights reserved. This program and the accompanying materials 4 4 * are made available under the terms of the Eclipse Public License v1.0 … … 27 27 /** 28 28 * The class <code>ImageTransfer</code> provides a platform specific mechanism 29 * for converting a Image represented as a java <code>ImageData</code> to a29 * for converting an Image represented as a java <code>ImageData</code> to a 30 30 * platform specific representation of the data and vice versa. 31 * See <code>Transfer</code> for additional information. 32 * 33 * <p>An example of a java <code>ImageData</code> is shown 34 * below:</p> 31 * 32 * <p>An example of a java <code>ImageData</code> is shown below:</p> 35 33 * 36 34 * <code><pre> 37 * Image image = new Image( "C:\temp\img1.gif");35 * Image image = new Image(display, "C:\temp\img1.gif"); 38 36 * ImageData imgData = image.getImageData(); 39 37 * </code></pre> 40 38 * 39 * @see Transfer 40 * 41 41 * @since 3.4 42 42 */ … … 66 66 * This implementation of <code>javaToNative</code> converts an ImageData object represented 67 67 * by java <code>ImageData</code> to a platform specific representation. 68 * For additional information see <code>Transfer#javaToNative</code>.69 * 70 * @param object a java <code>ImageData</code> containing the ImageData to be71 * converted72 * @param transferData an empty <code>TransferData</code> object; this73 * object will be filled in on return with the platform specific format of the data68 * 69 * @param object a java <code>ImageData</code> containing the ImageData to be converted 70 * @param transferData an empty <code>TransferData</code> object that will 71 * be filled in on return with the platform specific format of the data 72 * 73 * @see Transfer#nativeToJava 74 74 */ 75 75 public void javaToNative(Object object, TransferData transferData) { … … 139 139 * This implementation of <code>nativeToJava</code> converts a platform specific 140 140 * representation of an image to java <code>ImageData</code>. 141 * For additional information see <code>Transfer#nativeToJava</code>.142 * 143 * @ param transferData the platform specific representation of the data to be144 * been converted145 * @return a java <code>ImageData</code> of the image if146 * conversion was successful; otherwise null141 * 142 * @param transferData the platform specific representation of the data to be converted 143 * @return a java <code>ImageData</code> of the image if the conversion was successful; 144 * otherwise null 145 * 146 * @see Transfer#javaToNative 147 147 */ 148 148 public Object nativeToJava(TransferData transferData) {
