Class DefaultRangeIndicator

  • All Implemented Interfaces:
    IAnnotationPresentation

    public class DefaultRangeIndicator
    extends Annotation
    implements 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.
    • Constructor Detail

      • DefaultRangeIndicator

        public DefaultRangeIndicator()
        Creates a new range indicator.
    • Method Detail

      • paint

        public void paint​(GC gc,
                          Canvas canvas,
                          Rectangle bounds)
        Description copied from interface: IAnnotationPresentation
        Implement 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:
        paint in interface IAnnotationPresentation
        Parameters:
        gc - the drawing GC
        canvas - the canvas to draw on
        bounds - the bounds inside the canvas to draw on