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, waitgetLineText, useMarginprotected final FileAnnotation myAnnotation
public FileAnnotation getFileAnnotation()
public TextAnnotationPresentation getPresentation()
public boolean isGutterAction()
public java.lang.String getToolTip(int line,
Editor editor)
getToolTip in interface TextAnnotationGutterProviderpublic void doAction(int line)
EditorGutterActiondoAction in interface EditorGutterActionline - the number of line in the document the annotation for which was clicked.public java.awt.Cursor getCursor(int line)
EditorGutterActiongetCursor in interface EditorGutterActionline - the line number.public EditorFontType getStyle(int line, Editor editor)
getStyle in interface TextAnnotationGutterProviderpublic ColorKey getColor(int line, Editor editor)
getColor in interface TextAnnotationGutterProviderpublic java.util.List<AnAction> getPopupActions(int line, Editor editor)
TextAnnotationGutterProvidergetPopupActions in interface TextAnnotationGutterProviderpublic void gutterClosed()
TextAnnotationGutterProvidergutterClosed in interface TextAnnotationGutterProviderEditorGutter.closeAllAnnotations()public 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 boolean isShowByDefault()
public boolean isAvailable()
public java.lang.String getID()