Eclipse Platform
2.1

org.eclipse.jface.text.source
Class AnnotationPainter

java.lang.Object
  |
  +--org.eclipse.jface.text.source.AnnotationPainter
All Implemented Interfaces:
EventListener, IAnnotationModelListener, IPainter, PaintListener, org.eclipse.swt.internal.SWTEventListener

public class AnnotationPainter
extends Object
implements IPainter, PaintListener, IAnnotationModelListener

Highlights annotations.


Field Summary
 
Fields inherited from interface org.eclipse.jface.text.IPainter
CONFIGURATION, INTERNAL, KEY_STROKE, MOUSE_BUTTON, SELECTION, TEXT_CHANGE
 
Constructor Summary
AnnotationPainter(ISourceViewer sourceViewer, IAnnotationAccess access)
           
 
Method Summary
 void addAnnotationType(Object annotationType)
           
 void deactivate(boolean redraw)
          Deactivates the painter.
 void dispose()
          Disposes this painter.
 boolean isPaintingAnnotations()
           
 void modelChanged(IAnnotationModel model)
          Called if a model change occurred on the given model.
 void paint(int reason)
           
 void paintControl(PaintEvent event)
          Sent when a paint event occurs for the control.
 void removeAllAnnotationTypes()
           
 void removeAnnotationType(Object annotationType)
           
 void setAnnotationTypeColor(Object annotationType, Color color)
           
 void setPositionManager(IPaintPositionManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationPainter

public AnnotationPainter(ISourceViewer sourceViewer,
                         IAnnotationAccess access)
Method Detail

modelChanged

public void modelChanged(IAnnotationModel model)
Description copied from interface: IAnnotationModelListener
Called if a model change occurred on the given model.

Specified by:
modelChanged in interface IAnnotationModelListener
Parameters:
model - the changed annotation model

setAnnotationTypeColor

public void setAnnotationTypeColor(Object annotationType,
                                   Color color)

addAnnotationType

public void addAnnotationType(Object annotationType)

removeAnnotationType

public void removeAnnotationType(Object annotationType)

removeAllAnnotationTypes

public void removeAllAnnotationTypes()

isPaintingAnnotations

public boolean isPaintingAnnotations()

dispose

public void dispose()
Description copied from interface: IPainter
Disposes this painter.

XXX: The relationship with deactivate is not yet defined.

Specified by:
dispose in interface IPainter

paintControl

public void paintControl(PaintEvent event)
Description copied from interface: PaintListener
Sent when a paint event occurs for the control.

Specified by:
paintControl in interface PaintListener
Parameters:
event - an event containing information about the paint

deactivate

public void deactivate(boolean redraw)
Description copied from interface: IPainter
Deactivates the painter.

XXX: The relationship with dispose is not yet defined.

Specified by:
deactivate in interface IPainter

paint

public void paint(int reason)
Specified by:
paint in interface IPainter

setPositionManager

public void setPositionManager(IPaintPositionManager manager)
Specified by:
setPositionManager in interface IPainter

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.