Class RMViewerTextSelector


  • public class RMViewerTextSelector
    extends RMViewerInputAdapter
    A viewer input adapter to perform text selection and copy (as RTF and CSV).
    • 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 class RMViewerInputAdapter
      • mouseDragged

        public void mouseDragged​(java.awt.event.MouseEvent anEvent)
        Handle mouse dragged event.
        Overrides:
        mouseDragged in class RMViewerInputAdapter
      • mouseReleased

        public void mouseReleased​(java.awt.event.MouseEvent anEvent)
        Handle mouse released event.
        Overrides:
        mouseReleased in class RMViewerInputAdapter
      • 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.