public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMarkupModel, CaretListener, BulkAwareDocumentListener.Simple, VisibleAreaListener
BulkAwareDocumentListener.Simple
ARRAY_FACTORY, EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
void |
addErrorMarkerListener(ErrorStripeListener listener,
Disposable parent) |
void |
afterDocumentChange(Document document) |
void |
caretPositionChanged(CaretEvent event)
Called when the caret position has changed.
|
void |
dispose() |
Editor |
getEditor() |
ErrorStripeRenderer |
getErrorStripeRenderer() |
ErrorStripTooltipRendererProvider |
getErrorStripTooltipRendererProvider() |
boolean |
isErrorStripeVisible() |
void |
repaintTrafficLightIcon() |
void |
setErrorPanelPopupHandler(PopupHandler handler) |
void |
setErrorStripeRenderer(ErrorStripeRenderer renderer) |
void |
setErrorStripeVisible(boolean val) |
void |
setErrorStripTooltipRendererProvider(ErrorStripTooltipRendererProvider provider) |
void |
setMinMarkHeight(int minMarkHeight) |
void |
setTrafficLightIconVisible(boolean value) |
void |
visibleAreaChanged(VisibleAreaEvent e)
Called when the editor is scrolled or resized.
|
addLineHighlighter, addMarkupModelListener, addPersistentLineHighlighter, addRangeHighlighter, addRangeHighlighter, addRangeHighlighterAndChangeAttributes, changeAttributesInBatch, containsHighlighter, fireAfterAdded, fireAttributesChanged, fireBeforeRemoved, getAllHighlighters, getDocument, overlappingIterator, overlappingIterator, processRangeHighlightersOutside, processRangeHighlightersOverlappingWith, removeAllHighlighters, removeHighlighter, roundToLineBoundaries, setRangeHighlighterAttributes
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLineHighlighter, addRangeHighlighter, getAllHighlighters, getDocument, removeAllHighlighters, removeHighlighter
getUserData, putUserData
caretAdded, caretRemoved
beforeDocumentChange, beforeDocumentChangeNonBulk, bulkUpdateFinished, bulkUpdateStarting, documentChangedNonBulk
beforeDocumentChange, documentChanged
public void caretPositionChanged(CaretEvent event)
CaretListener
Only explicit caret movements (caused by 'move' methods in Caret
and CaretModel
) are reported, 'induced' changes of
caret offset due to document modifications are not reported.
caretPositionChanged
in interface CaretListener
event
- the event containing information about the caret movement.public void afterDocumentChange(Document document)
afterDocumentChange
in interface BulkAwareDocumentListener.Simple
public void visibleAreaChanged(VisibleAreaEvent e)
VisibleAreaListener
visibleAreaChanged
in interface VisibleAreaListener
e
- the event containing information about changes in the visible area of the editor.public void setTrafficLightIconVisible(boolean value)
public void repaintTrafficLightIcon()
public void setErrorStripeVisible(boolean val)
setErrorStripeVisible
in interface EditorMarkupModel
public void setErrorPanelPopupHandler(PopupHandler handler)
setErrorPanelPopupHandler
in interface EditorMarkupModel
public void setErrorStripTooltipRendererProvider(ErrorStripTooltipRendererProvider provider)
setErrorStripTooltipRendererProvider
in interface EditorMarkupModel
public ErrorStripTooltipRendererProvider getErrorStripTooltipRendererProvider()
getErrorStripTooltipRendererProvider
in interface EditorMarkupModel
public Editor getEditor()
getEditor
in interface EditorMarkupModel
public void setErrorStripeRenderer(ErrorStripeRenderer renderer)
setErrorStripeRenderer
in interface EditorMarkupModel
public ErrorStripeRenderer getErrorStripeRenderer()
getErrorStripeRenderer
in interface EditorMarkupModel
public void dispose()
dispose
in interface MarkupModelEx
dispose
in class MarkupModelImpl
public void addErrorMarkerListener(ErrorStripeListener listener, Disposable parent)
addErrorMarkerListener
in interface EditorMarkupModel
public void setMinMarkHeight(int minMarkHeight)
setMinMarkHeight
in interface EditorMarkupModel
public boolean isErrorStripeVisible()
isErrorStripeVisible
in interface EditorMarkupModel