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 class
RMViewerTextSelector.TextSelectorTransferrable
A 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 void
copy()
Handle copy.void
findTextShapes(RMParentShape aParent, RMPath aPath, java.util.List aList)
Finds the text shape children of the given shape in the given rect.java.awt.geom.Area
getTextSelectionArea()
Returns the text selection shape.void
mouseDragged(java.awt.event.MouseEvent anEvent)
Handle mouse dragged event.void
mousePressed(java.awt.event.MouseEvent anEvent)
Handle mouse pressed event.void
mouseReleased(java.awt.event.MouseEvent anEvent)
Handle mouse released event.void
paint(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:
mousePressed
in classRMViewerInputAdapter
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent anEvent)
Handle mouse dragged event.- Overrides:
mouseDragged
in classRMViewerInputAdapter
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent anEvent)
Handle mouse released event.- Overrides:
mouseReleased
in classRMViewerInputAdapter
-
paint
public void paint(java.awt.Graphics2D g)
Handle paint.- Overrides:
paint
in classRMViewerInputAdapter
-
copy
public void copy()
Handle copy.- Overrides:
copy
in 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.
-
-