RichParagraph.
| Modifier and Type | Method and Description |
|---|---|
| public RichParagraph | Returns: the decoratedRichParagraph instancethe model model, int the paragraph index index)Creates a |
| public void | handleChange(CodeTextModel
the model m, TextPos start of the affected range start, TextPos end of the affected range end, int number of characters added before any added paragraphs charsTop, int number of paragraphs inserted linesAdded, int number of characters added after any inserted paragraphs charsBottom)Receives the updates from the model, before any of the model's
|
| createRichParagraph | back to summary |
|---|---|
| public RichParagraph createRichParagraph(CodeTextModel model, int index) Creates a
For simple cases, when decorations can be generated using the paragraph text,
it can be obtained by calling
Alternatively, the syntax decorator may cache the syntax information,
or create
| |
| handleChange | back to summary |
|---|---|
| public void handleChange(CodeTextModel m, TextPos start, TextPos end, int charsTop, int linesAdded, int charsBottom) Receives the updates from the model, before any of the model's
The implementation might do nothing if the syntax can be determined based on the text of a single paragraph. Other implementations, which handle more complex syntax might want to re-build the syntax model any time the plain text document changes, should use this method to trigger the refresh.
| |