public abstract class Selection
extends java.lang.Object
implements java.lang.Cloneable
Selection.Range - represents an ordinary range of selected text.Selection.Rect - represents a rectangular selection.| Modifier and Type | Class and Description | 
|---|---|
| static class  | Selection.RangeAn ordinary range selection. | 
| static class  | Selection.RectA rectangular selection. | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | Selection() | 
| protected  | Selection(int start,
         int end) | 
| protected  | Selection(Selection sel) | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Object | clone() | 
| int | getEnd()Returns the end offset of this selection. | 
| abstract int | getEnd(JEditBuffer 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(JEditBuffer 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() | 
protected Selection()
protected Selection(Selection sel)
protected Selection(int start,
                    int end)
public int getStart()
public int getEnd()
public abstract int getStart(JEditBuffer buffer, int line)
buffer - The bufferline - The line numberpublic abstract int getEnd(JEditBuffer 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()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object