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, isAvailable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
useMargin
protected 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 AnnotationFieldGutter
public java.lang.String getLineText(int line, Editor editor)
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
getToolTip
in class AnnotationFieldGutter
public void doAction(int line)
EditorGutterAction
doAction
in interface EditorGutterAction
doAction
in class AnnotationFieldGutter
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
getCursor
in class AnnotationFieldGutter
line
- the line number.public EditorFontType getStyle(int line, Editor editor)
getStyle
in interface TextAnnotationGutterProvider
getStyle
in class AnnotationFieldGutter
public ColorKey getColor(int line, Editor editor)
getColor
in interface TextAnnotationGutterProvider
getColor
in class AnnotationFieldGutter
public java.awt.Color getBgColor(int line, Editor editor)
TextAnnotationGutterProvider
getBgColor
in interface TextAnnotationGutterProvider
getBgColor
in class AnnotationFieldGutter
line
- 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 AnnotationFieldGutter
public java.lang.String getID()
getID
in class AnnotationFieldGutter