public abstract class AnnotationFieldGutter extends java.lang.Object implements ActiveAnnotationGutter
Modifier and Type | Field and Description |
---|---|
protected FileAnnotation |
myAnnotation |
Modifier and Type | Method and Description |
---|---|
void |
doAction(int line)
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 line)
Returns the cursor to be shown where the mouse is over the annotation for the specified line.
|
FileAnnotation |
getFileAnnotation() |
java.lang.String |
getID() |
java.util.List<AnAction> |
getPopupActions(int line,
Editor editor)
enables annotation view modifications
|
TextAnnotationPresentation |
getPresentation() |
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.
|
boolean |
isAvailable() |
boolean |
isGutterAction() |
boolean |
isShowByDefault() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineText, useMargin
protected final FileAnnotation myAnnotation
public FileAnnotation getFileAnnotation()
public TextAnnotationPresentation getPresentation()
public boolean isGutterAction()
public java.lang.String getToolTip(int line, Editor editor)
getToolTip
in interface TextAnnotationGutterProvider
public void doAction(int line)
EditorGutterAction
doAction
in interface EditorGutterAction
line
- the number of line in the document the annotation for which was clicked.public java.awt.Cursor getCursor(int line)
EditorGutterAction
getCursor
in interface EditorGutterAction
line
- the line number.public EditorFontType getStyle(int line, Editor editor)
getStyle
in interface TextAnnotationGutterProvider
public ColorKey getColor(int line, Editor editor)
getColor
in interface TextAnnotationGutterProvider
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 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 boolean isShowByDefault()
public boolean isAvailable()
public java.lang.String getID()