Class RMViewerTextSelector
java.lang.Object
com.inductiveautomation.rm.viewer.RMViewerInputAdapter
com.inductiveautomation.rm.viewer.RMViewerTextSelector
A viewer input adapter to perform text selection and copy (as RTF and CSV).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA transferable for copy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy()Handle copy.voidfindTextShapes(RMParentShape aParent, RMPath aPath, List aList) Finds the text shape children of the given shape in the given rect.Returns the text selection shape.voidmouseDragged(MouseEvent anEvent) Handle mouse dragged event.voidmousePressed(MouseEvent anEvent) Handle mouse pressed event.voidmouseReleased(MouseEvent anEvent) Handle mouse released event.voidpaint(Graphics2D g) Handle paint.Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdapter
getViewer, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, processKeyEvent, processMouseEvent, processMouseMotionEvent
-
Constructor Details
-
RMViewerTextSelector
Creates a new text selector.
-
-
Method Details
-
mousePressed
Handle mouse pressed event.- Overrides:
mousePressedin classRMViewerInputAdapter
-
mouseDragged
Handle mouse dragged event.- Overrides:
mouseDraggedin classRMViewerInputAdapter
-
mouseReleased
Handle mouse released event.- Overrides:
mouseReleasedin classRMViewerInputAdapter
-
paint
Handle paint.- Overrides:
paintin classRMViewerInputAdapter
-
copy
public void copy()Handle copy.- Overrides:
copyin classRMViewerInputAdapter
-
findTextShapes
Finds the text shape children of the given shape in the given rect. Recurses into child shapes. -
getTextSelectionArea
Returns the text selection shape.
-