public class AnnotationGutterLineConvertorProxy extends java.lang.Object implements ActiveAnnotationGutter
Constructor and Description |
---|
AnnotationGutterLineConvertorProxy(UpToDateLineNumberProvider getUpToDateLineNumber,
ActiveAnnotationGutter delegate) |
Modifier and Type | Method and Description |
---|---|
void |
doAction(int lineNum)
Processes the click on the specified line.
|
java.awt.Color |
getBgColor(int line,
Editor editor)
Returns the background color for the text
|
ColorKey |
getColor(int line,
Editor editor) |
java.awt.Cursor |
getCursor(int lineNum)
Returns the cursor to be shown where the mouse is over the annotation for the specified line.
|
ActiveAnnotationGutter |
getDelegate() |
java.lang.String |
getLineText(int line,
Editor editor)
Returns the text which should be drawn for the line with the specified number in the specified editor.
|
java.util.List<AnAction> |
getPopupActions(int line,
Editor editor)
enables annotation view modifications
|
EditorFontType |
getStyle(int line,
Editor editor) |
java.lang.String |
getToolTip(int line,
Editor editor) |
void |
gutterClosed()
Called when the annotations are removed from the editor gutter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
useMargin
public AnnotationGutterLineConvertorProxy(UpToDateLineNumberProvider getUpToDateLineNumber, ActiveAnnotationGutter delegate)
public ActiveAnnotationGutter getDelegate()
public java.lang.String getLineText(int line, Editor editor)
TextAnnotationGutterProvider
getLineText
in interface TextAnnotationGutterProvider
line
- the line for which the text is requested.editor
- the editor in which the text will be drawn.public java.lang.String getToolTip(int line, Editor editor)
getToolTip
in interface TextAnnotationGutterProvider
public EditorFontType getStyle(int line, Editor editor)
getStyle
in interface TextAnnotationGutterProvider
public ColorKey getColor(int line, Editor editor)
getColor
in interface TextAnnotationGutterProvider
public java.awt.Color getBgColor(int line, Editor editor)
TextAnnotationGutterProvider
getBgColor
in interface TextAnnotationGutterProvider
line
- the line for which the background color is requested.editor
- the editor in which the text will be drawn.public java.util.List<AnAction> getPopupActions(int line, Editor editor)
TextAnnotationGutterProvider
getPopupActions
in interface TextAnnotationGutterProvider
public void gutterClosed()
TextAnnotationGutterProvider
gutterClosed
in interface TextAnnotationGutterProvider
EditorGutter.closeAllAnnotations()
public void doAction(int lineNum)
EditorGutterAction
doAction
in interface EditorGutterAction
lineNum
- the number of line in the document the annotation for which was clicked.public java.awt.Cursor getCursor(int lineNum)
EditorGutterAction
getCursor
in interface EditorGutterAction
lineNum
- the line number.