|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Extension interface for IAnnotationAccess.
Allows to get a label for the annotation's type.
.
| 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 |
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 annotationcanvas - the canvas to draw onbounds - the bounds inside the canvas to draw on
public 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 subtype of the potential annotation super typepublic Object[] getSupertypes(Object annotationType)
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||