public class LineMarkerInfo<T extends PsiElement>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LineMarkerInfo.LineMarkerGutterIconRenderer<T extends PsiElement> |
Modifier and Type | Field and Description |
---|---|
int |
endOffset |
RangeHighlighter |
highlighter |
protected javax.swing.Icon |
myIcon |
java.awt.Color |
separatorColor |
SeparatorPlacement |
separatorPlacement |
int |
startOffset |
int |
updatePass |
Constructor and Description |
---|
LineMarkerInfo(T element,
int startOffset,
javax.swing.Icon icon,
int updatePass,
Function<? super T,java.lang.String> tooltipProvider,
GutterIconNavigationHandler<T> navHandler)
|
LineMarkerInfo(T element,
int startOffset,
javax.swing.Icon icon,
int updatePass,
Function<? super T,java.lang.String> tooltipProvider,
GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment)
|
LineMarkerInfo(T element,
TextRange range,
javax.swing.Icon icon,
Function<? super T,java.lang.String> tooltipProvider,
GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment)
Creates a line marker info for the element.
|
LineMarkerInfo(T element,
TextRange range,
javax.swing.Icon icon,
int updatePass,
Function<? super T,java.lang.String> tooltipProvider,
GutterIconNavigationHandler<T> navHandler,
GutterIconRenderer.Alignment alignment)
|
Modifier and Type | Method and Description |
---|---|
GutterIconRenderer |
createGutterRenderer() |
MarkupEditorFilter |
getEditorFilter() |
T |
getElement() |
javax.swing.Icon |
getIcon() |
java.lang.String |
getLineMarkerTooltip() |
GutterIconNavigationHandler<T> |
getNavigationHandler() |
java.lang.String |
toString() |
protected final javax.swing.Icon myIcon
public final int startOffset
public final int endOffset
public java.awt.Color separatorColor
public SeparatorPlacement separatorPlacement
public RangeHighlighter highlighter
public final int updatePass
public LineMarkerInfo(T element, TextRange range, javax.swing.Icon icon, Function<? super T,java.lang.String> tooltipProvider, GutterIconNavigationHandler<T> navHandler, GutterIconRenderer.Alignment alignment)
LineMarkerProvider.getLineMarkerInfo(PsiElement)
javadoc
for specific quirks on which elements to use for line markers.element
- the element for which the line marker is created.range
- the range (relative to beginning of file) with which the marker is associatedicon
- the icon to show in the gutter for the line markertooltipProvider
- the callback to calculate the tooltip for the gutter iconnavHandler
- the handler executed when the gutter icon is clicked@Deprecated public LineMarkerInfo(T element, TextRange range, javax.swing.Icon icon, int updatePass, Function<? super T,java.lang.String> tooltipProvider, GutterIconNavigationHandler<T> navHandler, GutterIconRenderer.Alignment alignment)
@Deprecated public LineMarkerInfo(T element, int startOffset, javax.swing.Icon icon, int updatePass, Function<? super T,java.lang.String> tooltipProvider, GutterIconNavigationHandler<T> navHandler, GutterIconRenderer.Alignment alignment)
@Deprecated public LineMarkerInfo(T element, int startOffset, javax.swing.Icon icon, int updatePass, Function<? super T,java.lang.String> tooltipProvider, GutterIconNavigationHandler<T> navHandler)
public javax.swing.Icon getIcon()
public GutterIconRenderer createGutterRenderer()
public java.lang.String getLineMarkerTooltip()
public T getElement()
public MarkupEditorFilter getEditorFilter()
public GutterIconNavigationHandler<T> getNavigationHandler()
public java.lang.String toString()
toString
in class java.lang.Object