KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > custom > LineBackgroundListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.custom;
12
13 import org.eclipse.swt.internal.SWTEventListener;
14
15 public interface LineBackgroundListener extends SWTEventListener {
16     
17 /**
18  * This method is called when a line is about to be drawn in order to get its
19  * background color.
20  * <p>
21  * The following event fields are used:<ul>
22  * <li>event.lineOffset line start offset (input)</li>
23  * <li>event.lineText line text (input)</li>
24  * <li>event.lineBackground line background color (output)</li>
25  * </ul>
26  *
27  * @param event the given event
28  * @see LineBackgroundEvent
29  */

30 public void lineGetBackground(LineBackgroundEvent event);
31 }
32
Popular Tags