public class RMViewerTextSelector extends RMViewerInputAdapter
Modifier and Type | Class and Description |
---|---|
static class |
RMViewerTextSelector.TextSelectorTransferrable
A transferable for copy.
|
Constructor and Description |
---|
RMViewerTextSelector(RMViewer aViewer)
Creates a new text selector.
|
Modifier and Type | Method and 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.
|
getViewer, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, processKeyEvent, processMouseEvent, processMouseMotionEvent
public RMViewerTextSelector(RMViewer aViewer)
public void mousePressed(java.awt.event.MouseEvent anEvent)
mousePressed
in class RMViewerInputAdapter
public void mouseDragged(java.awt.event.MouseEvent anEvent)
mouseDragged
in class RMViewerInputAdapter
public void mouseReleased(java.awt.event.MouseEvent anEvent)
mouseReleased
in class RMViewerInputAdapter
public void paint(java.awt.Graphics2D g)
paint
in class RMViewerInputAdapter
public void copy()
copy
in class RMViewerInputAdapter
public void findTextShapes(RMParentShape aParent, RMPath aPath, java.util.List aList)
public java.awt.geom.Area getTextSelectionArea()