Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.jface.text.source
Interface IAnnotationPresentation

All Known Implementing Classes:
  DefaultRangeIndicator, ProjectionAnnotation

public interface IAnnotationPresentation

Interface for annotations that can take care of their own visible representation.

Since:
  3.0

Field Summary
`static int` | `DEFAULT_LAYER` The default annotation layer.

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.

Field Detail

### DEFAULT_LAYER

    public static final int DEFAULT_LAYER

  The default annotation layer.

  See Also:
    Constant Field Values

Method Detail

### getLayer

    public int getLayer()

  Returns the annotations drawing layer.

  Returns:
    the annotations drawing layer

### paint

    public void paint(GC gc,
                      Canvas canvas,
                      Rectangle bounds)

  Implement this method to draw a graphical representation of this annotation within the given bounds.

  Parameters:
    `gc` - the drawing GC
    `canvas` - the canvas to draw on
    `bounds` - the bounds inside the canvas to draw on

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.