Package org.gjt.sp.jedit.textarea
Class Selection.Rect
- java.lang.Object
-
- org.gjt.sp.jedit.textarea.Selection
-
- org.gjt.sp.jedit.textarea.Selection.Rect
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
ColumnBlock
- Enclosing class:
- Selection
public static class Selection.Rect extends Selection
A rectangular selection.- Since:
- jEdit 3.2pre1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.gjt.sp.jedit.textarea.Selection
Selection.Range, Selection.Rect
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEnd(JEditBuffer buffer, int line)Returns the end of the portion of the selection falling on the specified line.intgetEndColumn(JEditBuffer buffer)intgetStart(JEditBuffer buffer, int line)Returns the beginning of the portion of the selection falling on the specified line.intgetStartColumn(JEditBuffer buffer)-
Methods inherited from class org.gjt.sp.jedit.textarea.Selection
clone, getEnd, getEndLine, getStart, getStartLine, overlaps, toString
-
-
-
-
Constructor Detail
-
Rect
public Rect()
-
Rect
public Rect(Selection sel)
-
Rect
public Rect(int start, int end)
-
Rect
public Rect(int startLine, int start, int endLine, int end)
-
Rect
public Rect(JEditBuffer buffer, int startLine, int startColumn, int endLine, int endColumn)
-
-
Method Detail
-
getStartColumn
public int getStartColumn(JEditBuffer buffer)
-
getEndColumn
public int getEndColumn(JEditBuffer buffer)
-
getStart
public int getStart(JEditBuffer buffer, int line)
Description copied from class:SelectionReturns the beginning of the portion of the selection falling on the specified line. Used to manipulate selection text on a line-by-line basis.
-
getEnd
public int getEnd(JEditBuffer buffer, int line)
Description copied from class:SelectionReturns the end of the portion of the selection falling on the specified line. Used to manipulate selection text on a line-by-line basis.
-
-