Class RMViewerTextSelector
- java.lang.Object
- 
- com.inductiveautomation.rm.viewer.RMViewerInputAdapter
- 
- com.inductiveautomation.rm.viewer.RMViewerTextSelector
 
 
- 
 public class RMViewerTextSelector extends RMViewerInputAdapter A viewer input adapter to perform text selection and copy (as RTF and CSV).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRMViewerTextSelector.TextSelectorTransferrableA transferable for copy.
 - 
Constructor SummaryConstructors Constructor Description RMViewerTextSelector(RMViewer aViewer)Creates a new text selector.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopy()Handle copy.voidfindTextShapes(RMParentShape aParent, RMPath aPath, java.util.List aList)Finds the text shape children of the given shape in the given rect.java.awt.geom.AreagetTextSelectionArea()Returns the text selection shape.voidmouseDragged(java.awt.event.MouseEvent anEvent)Handle mouse dragged event.voidmousePressed(java.awt.event.MouseEvent anEvent)Handle mouse pressed event.voidmouseReleased(java.awt.event.MouseEvent anEvent)Handle mouse released event.voidpaint(java.awt.Graphics2D g)Handle paint.- 
Methods inherited from class com.inductiveautomation.rm.viewer.RMViewerInputAdaptergetViewer, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, processKeyEvent, processMouseEvent, processMouseMotionEvent
 
- 
 
- 
- 
- 
Constructor Detail- 
RMViewerTextSelectorpublic RMViewerTextSelector(RMViewer aViewer) Creates a new text selector.
 
- 
 - 
Method Detail- 
mousePressedpublic void mousePressed(java.awt.event.MouseEvent anEvent) Handle mouse pressed event.- Overrides:
- mousePressedin class- RMViewerInputAdapter
 
 - 
mouseDraggedpublic void mouseDragged(java.awt.event.MouseEvent anEvent) Handle mouse dragged event.- Overrides:
- mouseDraggedin class- RMViewerInputAdapter
 
 - 
mouseReleasedpublic void mouseReleased(java.awt.event.MouseEvent anEvent) Handle mouse released event.- Overrides:
- mouseReleasedin class- RMViewerInputAdapter
 
 - 
paintpublic void paint(java.awt.Graphics2D g) Handle paint.- Overrides:
- paintin class- RMViewerInputAdapter
 
 - 
copypublic void copy() Handle copy.- Overrides:
- copyin class- RMViewerInputAdapter
 
 - 
findTextShapespublic void findTextShapes(RMParentShape aParent, RMPath aPath, java.util.List aList) Finds the text shape children of the given shape in the given rect. Recurses into child shapes.
 - 
getTextSelectionAreapublic java.awt.geom.Area getTextSelectionArea() Returns the text selection shape.
 
- 
 
-