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, waituseMarginpublic AnnotationGutterLineConvertorProxy(UpToDateLineNumberProvider getUpToDateLineNumber, ActiveAnnotationGutter delegate)
public ActiveAnnotationGutter getDelegate()
public java.lang.String getLineText(int line,
Editor editor)
TextAnnotationGutterProvidergetLineText in interface TextAnnotationGutterProviderline - 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 TextAnnotationGutterProviderpublic EditorFontType getStyle(int line, Editor editor)
getStyle in interface TextAnnotationGutterProviderpublic ColorKey getColor(int line, Editor editor)
getColor in interface TextAnnotationGutterProviderpublic java.awt.Color getBgColor(int line,
Editor editor)
TextAnnotationGutterProvidergetBgColor in interface TextAnnotationGutterProviderline - 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)
TextAnnotationGutterProvidergetPopupActions in interface TextAnnotationGutterProviderpublic void gutterClosed()
TextAnnotationGutterProvidergutterClosed in interface TextAnnotationGutterProviderEditorGutter.closeAllAnnotations()public void doAction(int lineNum)
EditorGutterActiondoAction in interface EditorGutterActionlineNum - the number of line in the document the annotation for which was clicked.public java.awt.Cursor getCursor(int lineNum)
EditorGutterActiongetCursor in interface EditorGutterActionlineNum - the line number.