Class LineFooterAnnotation
java.lang.Object
org.eclipse.jface.text.source.Annotation
org.eclipse.jface.text.source.inlined.AbstractInlinedAnnotation
org.eclipse.jface.text.source.inlined.LineFooterAnnotation
Inlined annotation which is drawn after a line and which takes some place with a given height.
- Since:
- 3.28
-
Field Summary
Fields inherited from class org.eclipse.jface.text.source.inlined.AbstractInlinedAnnotation
TYPEFields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWN -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLineFooterAnnotation(Position position, ISourceViewer viewer, Consumer<MouseEvent> onMouseHover, Consumer<MouseEvent> onMouseOut, Consumer<MouseEvent> onMouseMove) -
Method Summary
Methods inherited from class org.eclipse.jface.text.source.inlined.AbstractInlinedAnnotation
draw, getAction, getPosition, getTextWidget, getViewer, isInVisibleLines, isInVisibleLines, onMouseHover, onMouseMove, onMouseOut, redrawMethods inherited from class org.eclipse.jface.text.source.Annotation
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
-
Constructor Details
-
LineFooterAnnotation
protected LineFooterAnnotation(Position position, ISourceViewer viewer, Consumer<MouseEvent> onMouseHover, Consumer<MouseEvent> onMouseOut, Consumer<MouseEvent> onMouseMove)
-
-
Method Details
-
getHeight
public int getHeight()Returns the annotation height. By default, returns theStyledText.getLineHeight().- Returns:
- the annotation height.
-