|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FormattingDocumentModel
Represents a model of the document containing the formatted text, as seen by the formatter. Allows a formatter to access information about the document.
FormattingModel.getDocumentModel()| Method Summary | |
|---|---|
int |
getLineNumber(int offset)
Returns the line number corresponding to the specified offset in the document. |
int |
getLineStartOffset(int line)
Returns the offset corresponding to the start of the specified line in the document. |
java.lang.CharSequence |
getText(TextRange textRange)
Returns the text contained in the specified text range of the document. |
int |
getTextLength()
Returns the length of the entire document text. |
| Method Detail |
|---|
int getLineNumber(int offset)
offset - the offset for which the line number is requested.
int getLineStartOffset(int line)
line - the line number for which the offset is requested.
java.lang.CharSequence getText(TextRange textRange)
textRange - the text range for which the text is requested.
int getTextLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||