Class BracketDrawingStrategy

java.lang.Object
org.apache.uima.caseditor.editor.annotation.BracketDrawingStrategy
All Implemented Interfaces:
org.eclipse.jface.text.source.AnnotationPainter.IDrawingStrategy

public class BracketDrawingStrategy extends Object implements org.eclipse.jface.text.source.AnnotationPainter.IDrawingStrategy
Draws brackets around an annotation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    draw(org.eclipse.jface.text.source.Annotation annotation, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.custom.StyledText textWidget, int offset, int length, org.eclipse.swt.graphics.Color color)
    Draws an opening bracket to the begin and a closing bracket to the end of the given annotation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BracketDrawingStrategy

      public BracketDrawingStrategy()
  • Method Details

    • draw

      public void draw(org.eclipse.jface.text.source.Annotation annotation, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.custom.StyledText textWidget, int offset, int length, org.eclipse.swt.graphics.Color color)
      Draws an opening bracket to the begin and a closing bracket to the end of the given annotation.
      Specified by:
      draw in interface org.eclipse.jface.text.source.AnnotationPainter.IDrawingStrategy
      Parameters:
      annotation - the annotation
      gc - the gc
      textWidget - the text widget
      offset - the offset
      length - the length
      color - the color