Eclipse Platform
Release 3.0

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

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

public static interface AnnotationPainter.IDrawingStrategy

A drawing strategy responsible for drawing a certain decoration.

Since:
3.0

Method Summary
 void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color)
          Draws a decoration of the given length start at the given offset in the given color onto the specified GC.
 

Method Detail

draw

public void draw(Annotation annotation,
                 GC gc,
                 StyledText textWidget,
                 int offset,
                 int length,
                 Color color)
Draws a decoration of the given length start at the given offset in the given color onto the specified GC.

Parameters:
annotation - the annotation to be drawn
gc - the graphical context
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.0

Guidelines for using Eclipse APIs.

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