# Uses of Interface
org.eclipse.swt.events.PaintListener

Packages that use PaintListener
Package
Description
org.eclipse.jface.text
Provides a framework for creating and manipulating text documents.
org.eclipse.jface.text.source
Provides a framework for connecting document regions with annotations and for displaying those.
org.eclipse.swt.widgets
SWT widget public API classes.

## Uses of PaintListener in org.eclipse.jface.text

Classes in org.eclipse.jface.text that implement PaintListener
Modifier and Type
Class
Description
`class`
`MarginPainter`
Paints a vertical line (margin line) after a given column respecting the text viewer's font.
`class`
`WhitespaceCharacterPainter`
A painter for drawing visible characters for (invisible) whitespace characters.

## Uses of PaintListener in org.eclipse.jface.text.source

Classes in org.eclipse.jface.text.source that implement PaintListener
Modifier and Type
Class
Description
`class`
`AnnotationPainter`
Paints decorations for annotations provided by an annotation model and/or highlights them in the associated source viewer.
`final class`
`MatchingCharacterPainter`
Highlights the peer character matching the character near the caret position, or a pair of peer characters enclosing the caret position.

## Uses of PaintListener in org.eclipse.swt.widgets

Methods in org.eclipse.swt.widgets with parameters of type PaintListener
Modifier and Type
Method
Description
`void`
Control.`addPaintListener(PaintListener listener)`
Adds the listener to the collection of listeners who will be notified when the receiver needs to be painted, by sending it one of the messages defined in the `PaintListener` interface.
`void`
Control.`removePaintListener(PaintListener listener)`
Removes the listener from the collection of listeners who will be notified when the receiver needs to be painted.