public abstract class LineAnnotationAspectAdapter extends java.lang.Object implements LineAnnotationAspect, EditorGutterAction
AUTHOR, DATE, REVISION
Modifier | Constructor and Description |
---|---|
protected |
LineAnnotationAspectAdapter() |
protected |
LineAnnotationAspectAdapter(java.lang.String id) |
|
LineAnnotationAspectAdapter(java.lang.String id,
boolean showByDefault) |
Modifier and Type | Method and Description |
---|---|
void |
doAction(int lineNum)
Processes the click on the specified line.
|
java.awt.Cursor |
getCursor(int lineNum)
Returns the cursor to be shown where the mouse is over the annotation for the specified line.
|
java.lang.String |
getId()
Returns unique identifier, that will be used to show/hide some aspects
If
null this line aspect won't be configurable in annotation settings |
java.lang.String |
getTooltipText(int lineNumber)
Used to show a tooltip for specific line or group of lines
|
boolean |
isShowByDefault()
Returns
true if this aspect will be shown on Annotate action |
protected abstract void |
showAffectedPaths(int lineNum) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBgColor, getColor, getStyle, getValue
protected LineAnnotationAspectAdapter()
protected LineAnnotationAspectAdapter(java.lang.String id)
public LineAnnotationAspectAdapter(java.lang.String id, boolean showByDefault)
public java.lang.String getTooltipText(int lineNumber)
LineAnnotationAspect
getTooltipText
in interface LineAnnotationAspect
lineNumber
- the line number to querypublic java.lang.String getId()
LineAnnotationAspect
null
this line aspect won't be configurable in annotation settingsgetId
in interface LineAnnotationAspect
public boolean isShowByDefault()
LineAnnotationAspect
true
if this aspect will be shown on Annotate actionisShowByDefault
in interface LineAnnotationAspect
true
if this aspect will be shown on Annotate actionpublic java.awt.Cursor getCursor(int lineNum)
EditorGutterAction
getCursor
in interface EditorGutterAction
lineNum
- the line number.public void doAction(int lineNum)
EditorGutterAction
doAction
in interface EditorGutterAction
lineNum
- the number of line in the document the annotation for which was clicked.protected abstract void showAffectedPaths(int lineNum)