public class DefaultRangeIndicator extends Annotation implements IAnnotationPresentation
This class may be instantiated; it is not intended to be subclassed.
This class is instantiated automatically by AbstractTextEditor
.
TYPE_UNKNOWN
DEFAULT_LAYER
Constructor and Description |
---|
DefaultRangeIndicator()
Creates a new range indicator.
|
Modifier and Type | Method and Description |
---|---|
int |
getLayer()
Returns the annotations drawing layer.
|
void |
paint(GC gc,
Canvas canvas,
Rectangle bounds)
Implement this method to draw a graphical representation
of this annotation within the given bounds.
|
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
public DefaultRangeIndicator()
public void paint(GC gc, Canvas canvas, Rectangle bounds)
IAnnotationPresentation
Note that this method is not used when drawing annotations on the editor's
text widget. This is handled trough a AnnotationPainter.IDrawingStrategy
.
paint
in interface IAnnotationPresentation
gc
- the drawing GCcanvas
- the canvas to draw onbounds
- the bounds inside the canvas to draw onpublic int getLayer()
IAnnotationPresentation
getLayer
in interface IAnnotationPresentation
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.