|
org.openide.text 6.9.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.text.Line.Set
org.openide.text.DocumentLine.Set
public abstract static class DocumentLine.Set
Abstract implementation of Line.Set.
Defines
ways to obtain a line set for documents following
NetBeans conventions.
| Constructor Summary | |
|---|---|
DocumentLine.Set(StyledDocument doc)
Constructor. |
|
| Method Summary | |
|---|---|
protected abstract Line |
createLine(int offset)
Creates a Line for a given offset. |
Line |
getCurrent(int line)
Find line object representing the line in current document. |
List |
getLines()
Returns a set of line objects sorted by their line numbers. |
Line |
getOriginal(int line)
Find line object in the line set corresponding to original line number. |
int |
getOriginalLineNumber(Line line)
Finds an original line number for given line in this line set. |
| Methods inherited from class org.openide.text.Line.Set |
|---|
getDate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentLine.Set(StyledDocument doc)
doc - document to work on| Method Detail |
|---|
public List getLines()
Line.Set
Linepublic Line getOriginal(int line) throws IndexOutOfBoundsException
Line.Set
getOriginal in class Line.Setline - number of the line
IndexOutOfBoundsException - if line is an invalid index for the original set of linespublic int getOriginalLineNumber(Line line)
Line.Set
getOriginalLineNumber in class Line.Setline - the line to look for
public Line getCurrent(int line) throws IndexOutOfBoundsException
Line.Set
getCurrent in class Line.Setline - number of the line in current state of the document
IndexOutOfBoundsException - if line is an invalid index for the original set of linesprotected abstract Line createLine(int offset)
Line for a given offset.
offset - the beginning offset of the line
|
org.openide.text 6.9.32 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||