Package com.inductiveautomation.rm.text
Class RMTextSel
java.lang.Object
com.inductiveautomation.rm.text.RMTextSel
A class to represent a selection of text.
- 
Constructor SummaryConstructorsConstructorDescriptionRMTextSel(RMTextEditor aText, int aStart, int anEnd) Creates a new selection.RMTextSel(RMTextEditor aText, int aStart, int anEnd, int anAnchor) Creates a new selection.
- 
Method SummaryModifier and TypeMethodDescriptionintReturns the anchor.intMoves the selection index backward a character (or if a range is selected, moves to beginning of range).intMoves the selection index forward a character (or if a range is selected, moves to end of range).intgetEnd()Returns the end.intMoves the insertion point to next newline or text end.intMoves the insertion point to the beginning of line.intgetSize()The length.intgetStart()Returns the start.Returns the selected text string.getText()Returns the text.booleanisEmpty()Returns whether selection is empty.protected booleanisWordChar(char c) Returns whether a character should be considered is part of a word when WordSelecting.
- 
Constructor Details- 
RMTextSelCreates a new selection.
- 
RMTextSelCreates a new selection.
 
- 
- 
Method Details- 
getTextReturns the text.
- 
getStartpublic int getStart()Returns the start.
- 
getEndpublic int getEnd()Returns the end.
- 
getAnchorpublic int getAnchor()Returns the anchor.
- 
getSizepublic int getSize()The length.
- 
isEmptypublic boolean isEmpty()Returns whether selection is empty.
- 
getStringReturns the selected text string.
- 
getCharRightpublic int getCharRight()Moves the selection index forward a character (or if a range is selected, moves to end of range).
- 
getCharLeftpublic int getCharLeft()Moves the selection index backward a character (or if a range is selected, moves to beginning of range).
- 
getLineStartpublic int getLineStart()Moves the insertion point to the beginning of line.
- 
getLineEndpublic int getLineEnd()Moves the insertion point to next newline or text end.
- 
isWordCharprotected boolean isWordChar(char c) Returns whether a character should be considered is part of a word when WordSelecting.
 
-