com.cmpware.ide.views
Class IconAnnotation
java.lang.Object
org.eclipse.jface.text.source.Annotation
com.cmpware.ide.views.IconAnnotation
- All Implemented Interfaces:
- org.eclipse.jface.text.source.IAnnotationPresentation
public class IconAnnotation
- extends org.eclipse.jface.text.source.Annotation
- implements org.eclipse.jface.text.source.IAnnotationPresentation
This class is used to draw a bitmap as an annotation.
Copyright (c) 2005 Cmpware, Inc. All Rights Reserved.
- Author:
- SAG
| Fields inherited from class org.eclipse.jface.text.source.Annotation |
TYPE_UNKNOWN |
| Fields inherited from interface org.eclipse.jface.text.source.IAnnotationPresentation |
DEFAULT_LAYER |
|
Constructor Summary |
IconAnnotation(org.eclipse.swt.graphics.Image icon)
|
|
Method Summary |
int |
getLayer()
|
void |
paint(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.widgets.Canvas canvas,
org.eclipse.swt.graphics.Rectangle bounds)
|
void |
setLayer(int l)
This method sets the display layer. |
| Methods inherited from class org.eclipse.jface.text.source.Annotation |
getText, getType, isMarkedDeleted, isPersistent, markDeleted, setText, setType |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconAnnotation
public IconAnnotation(org.eclipse.swt.graphics.Image icon)
paint
public void paint(org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.widgets.Canvas canvas,
org.eclipse.swt.graphics.Rectangle bounds)
- Specified by:
paint in interface org.eclipse.jface.text.source.IAnnotationPresentation
getLayer
public int getLayer()
- Specified by:
getLayer in interface org.eclipse.jface.text.source.IAnnotationPresentation
setLayer
public void setLayer(int l)
- This method sets the display layer.
- Parameters:
l - The layer number.