edu.princeton.swing.text
public interface HighlightedDocumentRenderer
Modifier and Type | Method and Description |
---|---|
void |
doRender(char[] chars,
byte[] charStyles,
int charCount,
int[] lineOffsets,
int lineCount,
java.lang.Object extraInfo)
When the doRender method of HighlightedDocument is called, it obtains a read lock and passes
its protected data to the specified instance of HighlightedDocumentRenderer.
|
void doRender(char[] chars, byte[] charStyles, int charCount, int[] lineOffsets, int lineCount, java.lang.Object extraInfo)
chars
- The characters in the document.charStyles
- The style index of each character in the document.charCount
- The number of characters in the document.lineOffsets
- The offsets of the first character of each line.lineCount
- The number of lines in the document.extraInfo
- An object to hold additional parameters from the caller of allowRender.HighlightedDocument.allowRender(HighlightedDocumentRenderer, Object)