|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension interface for IAnnotationAccess
.
This interface replaces the methods of IAnnotationAccess
.
This interface provides
IAnnotationAccess
Field Summary | |
static int |
DEFAULT_LAYER
The default annotation layer. |
Method Summary | |
int |
getLayer(Annotation annotation)
Returns the layer for given annotation. |
Object[] |
getSupertypes(Object annotationType)
Returns the list of super types for the given annotation type. |
String |
getTypeLabel(Annotation annotation)
Returns the label for the given annotation's type. |
boolean |
isPaintable(Annotation annotation)
Returns true if painting annotation will produce something
meaningful, false if not. |
boolean |
isSubtype(Object annotationType,
Object potentialSupertype)
Returns true if the given annotation is of the given type
or false otherwise. |
void |
paint(Annotation annotation,
GC gc,
Canvas canvas,
Rectangle bounds)
Draws a graphical representation of the given annotation within the given bounds. |
Field Detail |
public static final int DEFAULT_LAYER
Method Detail |
public String getTypeLabel(Annotation annotation)
annotation
- the annotation
null
if no such label existspublic int getLayer(Annotation annotation)
annotation
- the annotation
public void paint(Annotation annotation, GC gc, Canvas canvas, Rectangle bounds)
annotation
- the given annotationgc
- the drawing GCcanvas
- the canvas to draw onbounds
- the bounds inside the canvas to draw onpublic boolean isPaintable(Annotation annotation)
true
if painting annotation
will produce something
meaningful, false
if not. E.g. if no image is available.
annotation
- the annotation to check whether it can be painted
true
if painting annotation
will succeedpublic boolean isSubtype(Object annotationType, Object potentialSupertype)
true
if the given annotation is of the given type
or false
otherwise.
annotationType
- the annotation typepotentialSupertype
- the potential super annotation type
true
if annotation type is a sub-type of the potential annotation super typepublic Object[] getSupertypes(Object annotationType)
annotationType
- the annotation type to check
|
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.