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
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
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.