Class RMEditorClipboard
java.lang.Object
com.inductiveautomation.rm.editor.RMEditorClipboard
- All Implemented Interfaces:
- Transferable
Handles editor methods specific to clipboard operations (cut, copy paste).
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRMEditorClipboard(byte[] bytes) Creates new editor clipboard object with the given bytes.
- 
Method SummaryModifier 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, Transferable contents) Returns the shape or shapes read from the given transferable (uses system clipboard if null).getTransferData(DataFlavor aFlavor) Transferable method - returns the transfer data for the specified flavor.Transferable method - returns the transfer data flavors supported by this transferable.static RMShapegetTransferPDF(Transferable contents) Returns an RMImage with the contents if there's a pdf image on the clipboard.static RMShapegetTransferText(Transferable contents) Returns an RMText object with the contents if there's a plain text string on the clipboard.booleanisDataFlavorSupported(DataFlavor aFlavor) Transferable method - returns whether the given flavor is supported.static voidHandles editor paste operation.static voidpaste(RMEditor anEditor, Transferable contents, RMParentShape aParent, Point2D aPoint) Handles editor paste operation for given transferable, parent shape and location.
- 
Field Details- 
RMDataFlavor
- 
SupportedFlavors
 
- 
- 
Constructor Details- 
RMEditorClipboardpublic RMEditorClipboard(byte[] bytes) Creates new editor clipboard object with the given bytes.
 
- 
- 
Method Details- 
cutHandles editor cut operation.
- 
copyHandles editor copy operation.
- 
pasteHandles editor paste operation.
- 
pastepublic static void paste(RMEditor anEditor, Transferable contents, RMParentShape aParent, Point2D aPoint) Handles editor paste operation for given transferable, parent shape and location.
- 
getShapeFromClipboardReturns the first Shape read from the system clipboard.
- 
getShapesFromClipboardReturns the shape or shapes read from the given transferable (uses system clipboard if null).
- 
getTransferTextReturns an RMText object with the contents if there's a plain text string on the clipboard.
- 
getTransferPDFReturns an RMImage with the contents if there's a pdf image on the clipboard.
- 
getTransferDataFlavorsTransferable method - returns the transfer data flavors supported by this transferable.- Specified by:
- getTransferDataFlavorsin interface- Transferable
 
- 
isDataFlavorSupportedTransferable method - returns whether the given flavor is supported.- Specified by:
- isDataFlavorSupportedin interface- Transferable
 
- 
getTransferDataTransferable method - returns the transfer data for the specified flavor.- Specified by:
- getTransferDatain interface- Transferable
- Throws:
- UnsupportedFlavorException
- IOException
 
 
-