Package org.eclipse.jface.text.source
Class AnnotationPainter.SquigglesStrategy
java.lang.Object
org.eclipse.jface.text.source.AnnotationPainter.SquigglesStrategy
- All Implemented Interfaces:
AnnotationPainter.IDrawingStrategy
- Enclosing class:
- AnnotationPainter
@Deprecated
public static class AnnotationPainter.SquigglesStrategy
extends Object
implements AnnotationPainter.IDrawingStrategy
Deprecated.
Squiggles drawing strategy.
- Since:
- 3.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color) Deprecated.Draws a decoration for an annotation onto the specified GC at the given text range.
-
Constructor Details
-
SquigglesStrategy
public SquigglesStrategy()Deprecated.
-
-
Method Details
-
draw
public void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color) Deprecated.Description copied from interface:AnnotationPainter.IDrawingStrategy
Draws a decoration for an annotation onto the specified GC at the given text range. There are two different invocation modes of thedraw
method:- drawing mode: the passed GC is the graphics context of a paint event occurring on the text widget. The strategy should draw the decoration onto the graphics context, such that the decoration appears at the given range in the text widget.
- clearing mode: the passed GC is
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).
- Specified by:
draw
in interfaceAnnotationPainter.IDrawingStrategy
- Parameters:
annotation
- 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 line
-
AnnotationPainter.UnderlineStrategy