public class RMTextSel
extends java.lang.Object
Constructor and Description |
---|
RMTextSel(RMTextEditor aText,
int aStart,
int anEnd)
Creates a new selection.
|
RMTextSel(RMTextEditor aText,
int aStart,
int anEnd,
int anAnchor)
Creates a new selection.
|
Modifier and Type | Method and Description |
---|---|
int |
getAnchor()
Returns the anchor.
|
int |
getCharLeft()
Moves the selection index backward a character (or if a range is selected, moves to beginning of range).
|
int |
getCharRight()
Moves the selection index forward a character (or if a range is selected, moves to end of range).
|
int |
getEnd()
Returns the end.
|
int |
getLineEnd()
Moves the insertion point to next newline or text end.
|
int |
getLineStart()
Moves the insertion point to the beginning of line.
|
int |
getSize()
The length.
|
int |
getStart()
Returns the start.
|
java.lang.String |
getString()
Returns the selected text string.
|
RMTextEditor |
getText()
Returns the text.
|
boolean |
isEmpty()
Returns whether selection is empty.
|
public RMTextSel(RMTextEditor aText, int aStart, int anEnd)
public RMTextSel(RMTextEditor aText, int aStart, int anEnd, int anAnchor)
public RMTextEditor getText()
public int getStart()
public int getEnd()
public int getAnchor()
public int getSize()
public boolean isEmpty()
public java.lang.String getString()
public int getCharRight()
public int getCharLeft()
public int getLineStart()
public int getLineEnd()