|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gjt.sp.jedit.textarea.Selection
An abstract class that holds data on a region of selected text. As an abstract class, it cannot be used directly, but instead serves as a parent class for two specific types of selection structures:
Selection.Range
- represents an ordinary range of selected text.Selection.Rect
- represents a rectangular selection.
Nested Class Summary | |
static class |
Selection.Range
An ordinary range selection. |
static class |
Selection.Rect
A rectangular selection. |
Method Summary | |
java.lang.Object |
clone()
|
int |
getEnd()
Returns the end offset of this selection. |
abstract int |
getEnd(Buffer buffer,
int line)
Returns the end of the portion of the selection falling on the specified line. |
int |
getEndLine()
Returns the ending line number of this selection. |
int |
getStart()
Returns the start offset of this selection. |
abstract int |
getStart(Buffer buffer,
int line)
Returns the beginning of the portion of the selection falling on the specified line. |
int |
getStartLine()
Returns the starting line number of this selection. |
boolean |
overlaps(Selection s)
Returns if this selection and the specified selection overlap. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public int getStart()
public int getEnd()
public abstract int getStart(Buffer buffer, int line)
buffer
- The bufferline
- The line numberpublic abstract int getEnd(Buffer buffer, int line)
buffer
- The bufferline
- The line numberpublic int getStartLine()
public int getEndLine()
public boolean overlaps(Selection s)
s
- The other selectionpublic java.lang.String toString()
public java.lang.Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |