org.argouml.uml.diagram.ui
Class ActionSaveDiagramToClipboard
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--org.argouml.uml.diagram.ui.ActionSaveDiagramToClipboard
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.awt.datatransfer.ClipboardOwner, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class ActionSaveDiagramToClipboard
- extends javax.swing.AbstractAction
- implements java.awt.datatransfer.ClipboardOwner
This class copies a diagram to the system clipboard, this functionality
will only work with Java1.4, but it will compile with 1.3. It can be put into
GEF as it is rather generic.
- Since:
- argoUML version 0.15.2, Created on 19 October 2003, 08:36
- See Also:
-
Swing Drag and Drop
,
Serialized Form
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent actionEvent)
get diagram image and put in system clipboard. |
private java.awt.Image |
getImage()
get image from gef |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable transferable)
do nothing |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionSaveDiagramToClipboard
public ActionSaveDiagramToClipboard()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
- get diagram image and put in system clipboard.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
getImage
private java.awt.Image getImage()
- get image from gef
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable transferable)
- do nothing
- Specified by:
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner