01: /*******************************************************************************
02: * Copyright (c) 2000, 2003 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.events;
11:
12: import org.eclipse.swt.internal.SWTEventListener;
13:
14: /**
15: * Classes which implement this interface provide methods
16: * that deal with the events that are generated when the
17: * control needs to be painted.
18: * <p>
19: * After creating an instance of a class that implements
20: * this interface it can be added to a control using the
21: * <code>addPaintListener</code> method and removed using
22: * the <code>removePaintListener</code> method. When a
23: * paint event occurs, the paintControl method will be
24: * invoked.
25: * </p>
26: *
27: * @see PaintEvent
28: */
29: public interface PaintListener extends SWTEventListener {
30:
31: /**
32: * Sent when a paint event occurs for the control.
33: *
34: * @param e an event containing information about the paint
35: */
36: public void paintControl(PaintEvent e);
37: }
|