Class LineHeaderAnnotation


public class LineHeaderAnnotation extends AbstractInlinedAnnotation
Inlined annotation which is drawn before a line and which takes some place with a given height.
Since:
3.13
  • Constructor Details

    • LineHeaderAnnotation

      public LineHeaderAnnotation(Position position, ISourceViewer viewer)
      Line header annotation constructor.
      Parameters:
      position - the position where the annotation must be drawn.
      viewer - the ISourceViewer where the annotation must be drawn.
  • Method Details

    • getHeight

      public int getHeight()
      Returns the annotation height. By default, returns the StyledText.getLineHeight().
      Returns:
      the annotation height.