|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gmf.runtime.diagram.ui.render.clipboard.AWTClipboardHelper
Used for image transfer to the clipboard. This is only supported when on Windows systems.
SWT does not currently support image transfer to the Clipboard. This utility class is provided in order to transfer an SWT Image to the system clipboard using AWT image transfer APIs.
| Method Summary | |
void |
copyToClipboard(CustomData data,
java.awt.Image image)
Copies an image to the system clipboard. |
CustomData |
getCustomData()
Accessor method to retrieve the CustomData object from the clipboard. |
static AWTClipboardHelper |
getInstance()
Retrieves the singleton instance of AWTClipboardHelper. |
boolean |
hasCustomData()
Query method to determine if a CustomData object is on the
clipboard. |
boolean |
isImageCopySupported()
Return true if image copy is supported, that is, when running under Windows. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static AWTClipboardHelper getInstance()
AWTClipboardHelper.
AWTClipboardHelperpublic final boolean isImageCopySupported()
public boolean hasCustomData()
CustomData object is on the
clipboard.
public CustomData getCustomData()
CustomData object from the clipboard.
CustomData if it exists on the clipboard, null otherwise.
public void copyToClipboard(CustomData data,
java.awt.Image image)
data - the custom dataimage - the image to be copied
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.