|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.source.Annotation
Abstract graphical annotation used in a vertical ruler. Annotations are considered being located at layers. The vertical ruler paints annotations starting with layer 0 upwards. Thus an annotation of layer 5 will be drawn on top of all co-located annotations at the layers 4 - 0. Subclasses must provide the annotations paint method.
IVerticalRuler
Constructor Summary | |
protected |
Annotation()
Creates a new annotation. |
Method Summary | |
protected static void |
drawImage(Image image,
GC gc,
Canvas canvas,
Rectangle r,
int align)
Convenience method for drawing an image aligned inside a rectangle. |
protected static void |
drawImage(Image image,
GC gc,
Canvas canvas,
Rectangle r,
int halign,
int valign)
Convenience method for drawing an image aligned inside a rectangle. |
int |
getLayer()
|
abstract void |
paint(GC gc,
Canvas canvas,
Rectangle bounds)
Implement this method to draw a graphical representation of this annotation within the given bounds. |
protected void |
setLayer(int layer)
Sets the layer of this annotation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Annotation()
Method Detail |
protected void setLayer(int layer)
layer
- the layer of this annotationprotected static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int halign, int valign)
image
- the image to be drawncanvas
- the canvas on which to drawr
- the clipping rectanglehalign
- the horizontal alignment of the image to be drawnvalign
- the vertical alignment of the image to be drawnprotected static void drawImage(Image image, GC gc, Canvas canvas, Rectangle r, int align)
image
- the image to be drawncanvas
- the canvas on which to drawr
- the clipping rectanglealign
- the alignment of the image to be drawnpublic int getLayer()
public abstract void paint(GC gc, Canvas canvas, Rectangle bounds)
canvas
- the canvas to draw onbounds
- the bounds inside the canvas to draw on
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |