|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.AnnotationPainter.NullStrategy
Drawing strategy that does nothing.
Constructor Summary | |
---|---|
AnnotationPainter.NullStrategy()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnnotationPainter.NullStrategy()
Method Detail |
public void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color)
AnnotationPainter.IDrawingStrategy
draw
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.IDrawingStrategy
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
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.