public class AspectAnnotationFieldGutter extends AnnotationFieldGutter
| Modifier and Type | Field and Description |
|---|---|
protected LineAnnotationAspect |
myAspect |
myAnnotation| Constructor and Description |
|---|
AspectAnnotationFieldGutter(FileAnnotation annotation,
LineAnnotationAspect aspect,
TextAnnotationPresentation presentation,
Couple<java.util.Map<VcsRevisionNumber,java.awt.Color>> colorScheme) |
| 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.
|
java.lang.String |
getID() |
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.
|
EditorFontType |
getStyle(int line,
Editor editor) |
java.lang.String |
getToolTip(int line,
Editor editor) |
boolean |
isGutterAction() |
boolean |
isShowByDefault() |
getFileAnnotation, getPopupActions, getPresentation, gutterClosed, isAvailableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waituseMarginprotected final LineAnnotationAspect myAspect
public AspectAnnotationFieldGutter(FileAnnotation annotation, LineAnnotationAspect aspect, TextAnnotationPresentation presentation, Couple<java.util.Map<VcsRevisionNumber,java.awt.Color>> colorScheme)
public boolean isGutterAction()
isGutterAction in class AnnotationFieldGutterpublic java.lang.String getLineText(int line,
Editor editor)
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 TextAnnotationGutterProvidergetToolTip in class AnnotationFieldGutterpublic void doAction(int line)
EditorGutterActiondoAction in interface EditorGutterActiondoAction in class AnnotationFieldGutterline - the number of line in the document the annotation for which was clicked.public java.awt.Cursor getCursor(int line)
EditorGutterActiongetCursor in interface EditorGutterActiongetCursor in class AnnotationFieldGutterline - the line number.public EditorFontType getStyle(int line, Editor editor)
getStyle in interface TextAnnotationGutterProvidergetStyle in class AnnotationFieldGutterpublic ColorKey getColor(int line, Editor editor)
getColor in interface TextAnnotationGutterProvidergetColor in class AnnotationFieldGutterpublic java.awt.Color getBgColor(int line,
Editor editor)
TextAnnotationGutterProvidergetBgColor in interface TextAnnotationGutterProvidergetBgColor in class AnnotationFieldGutterline - the line for which the background color is requested.editor - the editor in which the text will be drawn.public boolean isShowByDefault()
isShowByDefault in class AnnotationFieldGutterpublic java.lang.String getID()
getID in class AnnotationFieldGutter