public static final class AnnotationPainter.NullStrategy extends Object implements AnnotationPainter.IDrawingStrategy
| Constructor and Description |
|---|
AnnotationPainter.NullStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color)
AnnotationPainter.IDrawingStrategydraw method:
null. In this case
the strategy must invalidate enough of the text widget's client area to cover any
decoration drawn in drawing mode. This can usually be accomplished by calling
textWidget.redrawRange(offset, length, true).draw in interface AnnotationPainter.IDrawingStrategyannotation - the annotation to be drawngc - the graphics context, null when in clearing modetextWidget - the text widget to draw onoffset - the offset of the linelength - the length of the linecolor - the color of the lineGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.