public class LayeredLexerEditorHighlighter extends LexerEditorHighlighter
LexerEditorHighlighter.HighlighterIteratorImpl, LexerEditorHighlighter.InvalidStateException, LexerEditorHighlighter.TokenProcessormyTextCOMPARATORARRAY_FACTORY, EMPTY_ARRAY| Constructor and Description |
|---|
LayeredLexerEditorHighlighter(SyntaxHighlighter highlighter,
EditorColorsScheme scheme) |
| Modifier and Type | Method and Description |
|---|---|
HighlighterIterator |
createBaseIterator(int startOffset) |
HighlighterIterator |
createIterator(int startOffset) |
protected SegmentArrayWithData |
createSegments() |
protected LexerEditorHighlighter.TokenProcessor |
createTokenProcessor(int startIndex,
SegmentArrayWithData segments,
java.lang.CharSequence text) |
void |
documentChanged(DocumentEvent e)
Called after the text of the document has been changed.
|
com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter.MappingSegments |
getSegments() |
protected boolean |
hasAdditionalData(int segmentIndex) |
void |
registerLayer(IElementType tokenType,
LayerDescriptor layerHighlighter) |
void |
setColorScheme(EditorColorsScheme scheme) |
void |
setText(java.lang.CharSequence text) |
java.lang.String |
toString() |
void |
unregisterLayer(IElementType tokenType) |
protected boolean |
updateLayers() |
protected boolean |
updateLayers(DocumentEvent e) |
checkContentIsEqualTo, createStorage, getAttributesForPreviousAndTypedChars, getClient, getDocument, getLexer, getPriority, getScheme, getSyntaxHighlighter, isPlain, isValid, setEditorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeforeDocumentChange, bulkUpdateFinished, bulkUpdateStartingpublic LayeredLexerEditorHighlighter(SyntaxHighlighter highlighter, EditorColorsScheme scheme)
protected SegmentArrayWithData createSegments()
createSegments in class LexerEditorHighlighterpublic void registerLayer(IElementType tokenType, LayerDescriptor layerHighlighter)
public void unregisterLayer(IElementType tokenType)
public com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter.MappingSegments getSegments()
getSegments in class LexerEditorHighlighterpublic void setText(java.lang.CharSequence text)
setText in interface EditorHighlightersetText in class LexerEditorHighlighterprotected LexerEditorHighlighter.TokenProcessor createTokenProcessor(int startIndex, SegmentArrayWithData segments, java.lang.CharSequence text)
createTokenProcessor in class LexerEditorHighlighterprotected boolean updateLayers()
protected boolean updateLayers(DocumentEvent e)
public void documentChanged(DocumentEvent e)
DocumentListenerdocumentChanged in interface DocumentListenerdocumentChanged in class LexerEditorHighlightere - the event containing the information about the change.public HighlighterIterator createIterator(int startOffset)
createIterator in interface EditorHighlightercreateIterator in class LexerEditorHighlighterpublic HighlighterIterator createBaseIterator(int startOffset)
public void setColorScheme(EditorColorsScheme scheme)
setColorScheme in interface EditorHighlightersetColorScheme in class LexerEditorHighlighterprotected boolean hasAdditionalData(int segmentIndex)
hasAdditionalData in class LexerEditorHighlighterpublic java.lang.String toString()
toString in class LexerEditorHighlighter