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 class
A transferable for copy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
copy()
Handle copy.void
findTextShapes
(RMParentShape aParent, RMPath aPath, List aList) Finds the text shape children of the given shape in the given rect.Returns the text selection shape.void
mouseDragged
(MouseEvent anEvent) Handle mouse dragged event.void
mousePressed
(MouseEvent anEvent) Handle mouse pressed event.void
mouseReleased
(MouseEvent anEvent) Handle mouse released event.void
paint
(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:
mousePressed
in classRMViewerInputAdapter
-
mouseDragged
Handle mouse dragged event.- Overrides:
mouseDragged
in classRMViewerInputAdapter
-
mouseReleased
Handle mouse released event.- Overrides:
mouseReleased
in classRMViewerInputAdapter
-
paint
Handle paint.- Overrides:
paint
in classRMViewerInputAdapter
-
copy
public void copy()Handle copy.- Overrides:
copy
in 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.
-