Eclipse Platform
Release 3.2

org.eclipse.jface.text.source
Interface AnnotationPainter.IDrawingStrategy

All Known Implementing Classes:
AnnotationPainter.NullStrategy, AnnotationPainter.SquigglesStrategy
Enclosing class:
AnnotationPainter

public static interface AnnotationPainter.IDrawingStrategy

A drawing strategy draws the decoration for an annotation onto the text widget.

Since:
3.0

Method Summary
 void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color)
          Draws a decoration for an annotation onto the specified GC at the given text range.
 

Method Detail

draw

void draw(Annotation annotation,
          GC gc,
          StyledText textWidget,
          int offset,
          int length,
          Color color)
Draws a decoration for an annotation onto the specified GC at the given text range. There are two different invocation modes of the draw method:

Parameters:
annotation - the annotation to be drawn
gc - the graphics context, null when in clearing mode
textWidget - the text widget to draw on
offset - the offset of the line
length - the length of the line
color - the color of the line

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.