|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.text.source.Annotation
org.eclipse.ui.texteditor.DefaultAnnotation
Default annotation. This class may be instantiated or be subclassed.
XXX: This is work in progress and can change anytime until API for 3.0 is frozen.
| Field Summary | |
static int |
BOOKMARK_LAYER
Deprecated. The layer in which bookmarks annotatons are located. |
static int |
ERROR_LAYER
Deprecated. The layer in which error annotations representing are located. |
protected Image |
fImage
Deprecated. |
protected String |
fImageName
Deprecated. |
static int |
INFO_LAYER
Deprecated. The layer in which info annotations are located. |
static int |
TASK_LAYER
Deprecated. The layer in which task annotations are located. |
static int |
WARNING_LAYER
Deprecated. The layer in which warning annotations representing are located. |
| Fields inherited from class org.eclipse.jface.text.source.Annotation |
TYPE_UNKNOWN |
| Constructor Summary | |
DefaultAnnotation(String markerType,
int severity,
boolean isTemporary,
String message)
Deprecated. Creates a new annotation. |
|
| Method Summary | |
protected Image |
getImage(Display display)
Deprecated. |
protected static Image |
getImage(Display display,
ImageDescriptor descriptor)
Deprecated. Returns an image for the given display as specified by the given image descriptor. |
protected Image |
getImage(String name)
Deprecated. Returns the image of the given name. |
protected static Map |
getImageRegistry(Display display)
Deprecated. Returns an image registry for the given display. |
protected String |
getUnknownImageName(String annotationType)
Deprecated. Returns the name of an image used to visually represent markers of unknown type. |
protected void |
initialize()
Deprecated. Initializes the annotation's icon representation and its drawing layer based upon the properties of the underlying marker. |
void |
paint(GC gc,
Canvas canvas,
Rectangle r)
Deprecated. Implement this method to draw a graphical representation of this annotation within the given bounds. |
protected void |
setImage(Image image)
Deprecated. Sets the marker image to the given image. |
| Methods inherited from class org.eclipse.jface.text.source.Annotation |
drawImage, drawImage, getLayer, getText, getType, isMarkedDeleted, isPersistent, markDeleted, setLayer, setText, setType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation |
getLayer |
| Field Detail |
public static final int TASK_LAYER
public static final int BOOKMARK_LAYER
public static final int INFO_LAYER
public static final int WARNING_LAYER
public static final int ERROR_LAYER
protected Image fImage
protected String fImageName
| Constructor Detail |
public DefaultAnnotation(String markerType,
int severity,
boolean isTemporary,
String message)
markerType - the marker type of this annotationseverity - the severity of this annotationisTemporary - true if this is a temporary annotationmessage - the message of this annotation| Method Detail |
protected static Image getImage(Display display,
ImageDescriptor descriptor)
display - the displaydescriptor - the image descriptor
protected static Map getImageRegistry(Display display)
display - the display
protected void initialize()
protected String getUnknownImageName(String annotationType)
null.
Subclasses may replace this method.
public void paint(GC gc,
Canvas canvas,
Rectangle r)
IAnnotationPresentation
paint in interface IAnnotationPresentationpaint in class Annotationcanvas - the canvas to draw onr - the bounds inside the canvas to draw onprotected void setImage(Image image)
image - the new marker imageprotected Image getImage(String name)
name - the name of the requested image
null if there is no such imageprotected Image getImage(Display display)
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||