java.lang.Object
org.gjt.sp.jedit.textarea.Selection
org.gjt.sp.jedit.textarea.Selection.Range
- All Implemented Interfaces:
- java.lang.Cloneable
- Enclosing class:
- Selection
- public static class Selection.Range
- extends Selection
An ordinary range selection.
- Since:
- jEdit 3.2pre1
|
Method Summary |
(package private) boolean |
contentInserted(org.gjt.sp.jedit.Buffer buffer,
int startLine,
int start,
int numLines,
int length)
|
(package private) boolean |
contentRemoved(org.gjt.sp.jedit.Buffer buffer,
int startLine,
int start,
int numLines,
int length)
|
int |
getEnd(org.gjt.sp.jedit.Buffer buffer,
int line)
Returns the end of the portion of the selection
falling on the specified line. |
int |
getStart(org.gjt.sp.jedit.Buffer buffer,
int line)
Returns the beginning of the portion of the selection
falling on the specified line. |
(package private) void |
getText(org.gjt.sp.jedit.Buffer buffer,
java.lang.StringBuffer buf)
|
(package private) int |
setText(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text)
|
Selection.Range
public Selection.Range()
Selection.Range
public Selection.Range(Selection sel)
Selection.Range
public Selection.Range(int start,
int end)
getStart
public int getStart(org.gjt.sp.jedit.Buffer buffer,
int line)
- Description copied from class:
Selection
- Returns the beginning of the portion of the selection
falling on the specified line. Used to manipulate
selection text on a line-by-line basis.
- Specified by:
getStart in class Selection
getEnd
public int getEnd(org.gjt.sp.jedit.Buffer buffer,
int line)
- Description copied from class:
Selection
- Returns the end of the portion of the selection
falling on the specified line. Used to manipulate
selection text on a line-by-line basis.
- Specified by:
getEnd in class Selection
getText
void getText(org.gjt.sp.jedit.Buffer buffer,
java.lang.StringBuffer buf)
- Specified by:
getText in class Selection
setText
int setText(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text)
- Specified by:
setText in class Selection
contentInserted
boolean contentInserted(org.gjt.sp.jedit.Buffer buffer,
int startLine,
int start,
int numLines,
int length)
- Specified by:
contentInserted in class Selection
contentRemoved
boolean contentRemoved(org.gjt.sp.jedit.Buffer buffer,
int startLine,
int start,
int numLines,
int length)
- Specified by:
contentRemoved in class Selection