|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RangeHighlighter
Represents a range of text in the document which has specific markup (special text attributes, line marker, gutter icon, error stripe marker or line separator).
MarkupModel.addRangeHighlighter(int, int, int, TextAttributes, HighlighterTargetArea),
Annotation| Method Summary | |
|---|---|
MarkupEditorFilter |
getEditorFilter()
Gets the filter which can disable the highlighter in specific editor instances. |
java.awt.Color |
getErrorStripeMarkColor()
Returns the color of the marker drawn in the error stripe in the area covered by the highlighter. |
java.lang.Object |
getErrorStripeTooltip()
Returns the object whose toString() method is called to get the text of the tooltip
for the error stripe marker added by the highlighter. |
GutterIconRenderer |
getGutterIconRenderer()
Returns the renderer used for drawing gutter icons in the area covered by the highlighter. |
int |
getLayer()
Returns the relative priority of the highlighter (higher priority highlighters can override lower priority ones; layer number values for standard IDEA highlighters are given in HighlighterLayer class). |
LineMarkerRenderer |
getLineMarkerRenderer()
Returns the renderer used for drawing line markers in the area covered by the highlighter, and optionally for processing mouse events over the markers. |
java.awt.Color |
getLineSeparatorColor()
Returns the color of the separator drawn above or below the range covered by the highlighter. |
SeparatorPlacement |
getLineSeparatorPlacement()
Returns the placement of the separator drawn by the range highlighter (above or below the range). |
HighlighterTargetArea |
getTargetArea()
Returns the value indicating whether the highlighter affects a range of text or a sequence of of entire lines in the specified range. |
TextAttributes |
getTextAttributes()
Returns the text attributes used for highlighting. |
boolean |
isThinErrorStripeMark()
Returns the value indicating whether the error stripe marker has reduced width (like the markers used to highlight changed lines). |
void |
setEditorFilter(MarkupEditorFilter filter)
Sets the filter which can disable the highlighter in specific editor instances. |
void |
setErrorStripeMarkColor(java.awt.Color color)
Sets the color of the marker drawn in the error stripe in the area covered by the highlighter. |
void |
setErrorStripeTooltip(java.lang.Object tooltipObject)
Sets the object whose toString() method is called to get the text of the tooltip
for the error stripe marker added by the highlighter. |
void |
setGutterIconRenderer(GutterIconRenderer renderer)
Sets the renderer used for drawing gutter icons in the area covered by the highlighter. |
void |
setLineMarkerRenderer(LineMarkerRenderer renderer)
Sets the renderer used for drawing line markers in the area covered by the highlighter, and optionally for processing mouse events over the markers. |
void |
setLineSeparatorColor(java.awt.Color color)
Sets the color of the separator drawn above or below the range covered by the highlighter. |
void |
setLineSeparatorPlacement(SeparatorPlacement placement)
Sets the placement of the separator drawn by the range highlighter (above or below the range). |
void |
setThinErrorStripeMark(boolean value)
Sets the value indicating whether the error stripe marker has reduced width (like the markers used to highlight changed lines). |
| Methods inherited from interface com.intellij.openapi.editor.RangeMarker |
|---|
getDocument, getEndOffset, getStartOffset, isValid, setGreedyToLeft, setGreedyToRight |
| Methods inherited from interface com.intellij.openapi.util.UserDataHolder |
|---|
getUserData, putUserData |
| Method Detail |
|---|
int getLayer()
HighlighterLayer class).
HighlighterTargetArea getTargetArea()
@Nullable TextAttributes getTextAttributes()
@Nullable LineMarkerRenderer getLineMarkerRenderer()
ActiveGutterRenderer
void setLineMarkerRenderer(@Nullable
LineMarkerRenderer renderer)
renderer - the renderer instance, or null if the highlighter does not add any line markers.ActiveGutterRenderer@Nullable GutterIconRenderer getGutterIconRenderer()
void setGutterIconRenderer(@Nullable
GutterIconRenderer renderer)
renderer - the renderer instance, or null if the highlighter does not add any gutter icons.@Nullable java.awt.Color getErrorStripeMarkColor()
void setErrorStripeMarkColor(@Nullable
java.awt.Color color)
color - the error stripe marker color, or null if the highlighter does not add any
error stripe markers.@Nullable java.lang.Object getErrorStripeTooltip()
toString() method is called to get the text of the tooltip
for the error stripe marker added by the highlighter.
void setErrorStripeTooltip(@Nullable
java.lang.Object tooltipObject)
toString() method is called to get the text of the tooltip
for the error stripe marker added by the highlighter.
tooltipObject - the error stripe tooltip objects, or null if the highlighter does not
add any error stripe markers or the marker has no tooltip.boolean isThinErrorStripeMark()
void setThinErrorStripeMark(boolean value)
value - true if the marker has reduced width, false otherwise.@Nullable java.awt.Color getLineSeparatorColor()
void setLineSeparatorColor(@Nullable
java.awt.Color color)
color - the separator color, or null if the highlighter does not add a line separator.@Nullable SeparatorPlacement getLineSeparatorPlacement()
void setLineSeparatorPlacement(@Nullable
SeparatorPlacement placement)
placement - the separator placement, or null if the highlighter does not add a line separator.
void setEditorFilter(@Nullable
MarkupEditorFilter filter)
filter - the filter controlling the highlighter availability, or null if the
highlighter is available in all editors.@Nullable MarkupEditorFilter getEditorFilter()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||