public class LayeredLexerEditorHighlighter extends LexerEditorHighlighter
LexerEditorHighlighter.HighlighterIteratorImpl, LexerEditorHighlighter.InvalidStateException, LexerEditorHighlighter.TokenProcessor
myText
COMPARATOR
ARRAY_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, setEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
beforeDocumentChange, bulkUpdateFinished, bulkUpdateStarting
public LayeredLexerEditorHighlighter(SyntaxHighlighter highlighter, EditorColorsScheme scheme)
protected SegmentArrayWithData createSegments()
createSegments
in class LexerEditorHighlighter
public void registerLayer(IElementType tokenType, LayerDescriptor layerHighlighter)
public void unregisterLayer(IElementType tokenType)
public com.intellij.openapi.editor.ex.util.LayeredLexerEditorHighlighter.MappingSegments getSegments()
getSegments
in class LexerEditorHighlighter
public void setText(java.lang.CharSequence text)
setText
in interface EditorHighlighter
setText
in class LexerEditorHighlighter
protected LexerEditorHighlighter.TokenProcessor createTokenProcessor(int startIndex, SegmentArrayWithData segments, java.lang.CharSequence text)
createTokenProcessor
in class LexerEditorHighlighter
protected boolean updateLayers()
protected boolean updateLayers(DocumentEvent e)
public void documentChanged(DocumentEvent e)
DocumentListener
documentChanged
in interface DocumentListener
documentChanged
in class LexerEditorHighlighter
e
- the event containing the information about the change.public HighlighterIterator createIterator(int startOffset)
createIterator
in interface EditorHighlighter
createIterator
in class LexerEditorHighlighter
public HighlighterIterator createBaseIterator(int startOffset)
public void setColorScheme(EditorColorsScheme scheme)
setColorScheme
in interface EditorHighlighter
setColorScheme
in class LexerEditorHighlighter
protected boolean hasAdditionalData(int segmentIndex)
hasAdditionalData
in class LexerEditorHighlighter
public java.lang.String toString()
toString
in class LexerEditorHighlighter