Package org.eclipse.ui.texteditor
Class DefaultRangeIndicator
java.lang.Object
org.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.DefaultRangeIndicator
- All Implemented Interfaces:
IAnnotationPresentation
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.
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Fields inherited from class org.eclipse.jface.text.source.Annotation
TYPE_UNKNOWNFields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation
DEFAULT_LAYER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.jface.text.source.Annotation
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType
-
Constructor Details
-
DefaultRangeIndicator
public DefaultRangeIndicator()Creates a new range indicator.
-
-
Method Details
-
paint
Description copied from interface:IAnnotationPresentationImplement this method to draw a graphical representation of this annotation within the given bounds.Note that this method is not used when drawing annotations on the editor's text widget. This is handled trough a
AnnotationPainter.IDrawingStrategy.- Specified by:
paintin interfaceIAnnotationPresentation- Parameters:
gc- the drawing GCcanvas- the canvas to draw onbounds- the bounds inside the canvas to draw on
-
getLayer
public int getLayer()Description copied from interface:IAnnotationPresentationReturns the annotations drawing layer.- Specified by:
getLayerin interfaceIAnnotationPresentation- Returns:
- the annotations drawing layer
-