Package com.reportmill.editor
Class RMEditorClipboard
java.lang.Object
com.reportmill.editor.RMEditorClipboard
- All Implemented Interfaces:
Transferable
Handles editor methods specific to clipboard operations (cut, copy paste).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRMEditorClipboard(byte[] bytes) Creates new editor clipboard object with the given bytes. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidHandles editor copy operation.static voidHandles editor cut operation.static RMShapegetShapeFromClipboard(RMEditor anEditor) Returns the first Shape read from the system clipboard.static ObjectgetShapesFromClipboard(RMEditor anEditor) Returns the shape or shapes read from the system clipboard.static ObjectgetShapesFromClipboard(RMEditor anEditor, Transferable contents) Returns the shape or shapes read from the given tranferable.getTransferData(DataFlavor aFlavor) Transferable method - returns the tranfer data for the specified flavor.Transferable method - returns the tranfer dataflavors supported by this transferable.booleanisDataFlavorSupported(DataFlavor aFlavor) Transferable method - returns whehter the given flavor is supported.static voidHandles editor paste operation.static voidpaste(RMEditor anEditor, Transferable contents, RMShape parent, RMPoint location) Handles editor paste operation for given tranferable, parent shape and location.
-
Field Details
-
RMDataFlavor
-
SupportedFlavors
-
-
Constructor Details
-
RMEditorClipboard
public RMEditorClipboard(byte[] bytes) Creates new editor clipboard object with the given bytes.
-
-
Method Details
-
cut
Handles editor cut operation. -
copy
Handles editor copy operation. -
paste
Handles editor paste operation. -
paste
public static void paste(RMEditor anEditor, Transferable contents, RMShape parent, RMPoint location) Handles editor paste operation for given tranferable, parent shape and location. -
getShapeFromClipboard
Returns the first Shape read from the system clipboard. -
getShapesFromClipboard
Returns the shape or shapes read from the system clipboard. -
getShapesFromClipboard
Returns the shape or shapes read from the given tranferable. -
getTransferDataFlavors
Transferable method - returns the tranfer dataflavors supported by this transferable.- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
Transferable method - returns whehter the given flavor is supported.- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
Transferable method - returns the tranfer data for the specified flavor.- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-