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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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 interfaceorg.eclipse.jface.text.source.AnnotationPainter.IDrawingStrategy
- Parameters:
annotation
- the annotationgc
- the gctextWidget
- the text widgetoffset
- the offsetlength
- the lengthcolor
- the color
-