|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.DefaultRangeIndicator
Specialized annotation to indicate a particular range of text lines.
This class may be instantiated; it is not intended to be subclassed.
This class is instantiated automatically by AbstractTextEditor
.
Field Summary |
Fields inherited from class org.eclipse.jface.text.source.Annotation |
TYPE_UNKNOWN |
Fields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation |
DEFAULT_LAYER |
Constructor Summary | |
DefaultRangeIndicator()
Creates a new range indicator. |
Method Summary | |
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. |
Methods inherited from class org.eclipse.jface.text.source.Annotation |
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultRangeIndicator()
Method Detail |
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
|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.