Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

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

static final int DEFAULT_LAYER
The default annotation layer.

See Also:
Constant Field Values
Method Detail

getLayer

int getLayer()
Returns the annotations drawing layer.

Returns:
the annotations drawing layer

paint

void paint(
GC gc,
           
Canvas canvas,
           
Rectangle bounds)
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.

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

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire