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 Summary
Nested Classes Modifier and Type Class Description static classRMViewerTextSelector.TextSelectorTransferrableA transferable for copy.
-
Constructor Summary
Constructors Constructor Description RMViewerTextSelector(RMViewer aViewer)Creates a new text selector.
-
Method Summary
All 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.RMViewerInputAdapter
getViewer, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, processKeyEvent, processMouseEvent, processMouseMotionEvent
-
-
-
-
Constructor Detail
-
RMViewerTextSelector
public RMViewerTextSelector(RMViewer aViewer)
Creates a new text selector.
-
-
Method Detail
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent anEvent)
Handle mouse pressed event.- Overrides:
mousePressedin classRMViewerInputAdapter
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent anEvent)
Handle mouse dragged event.- Overrides:
mouseDraggedin classRMViewerInputAdapter
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent anEvent)
Handle mouse released event.- Overrides:
mouseReleasedin classRMViewerInputAdapter
-
paint
public void paint(java.awt.Graphics2D g)
Handle paint.- Overrides:
paintin classRMViewerInputAdapter
-
copy
public void copy()
Handle copy.- Overrides:
copyin classRMViewerInputAdapter
-
findTextShapes
public 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.
-
getTextSelectionArea
public java.awt.geom.Area getTextSelectionArea()
Returns the text selection shape.
-
-