1 /*******************************************************************************
2 * Copyright (c) 2000, 2016 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.custom;
16 import org.eclipse.swt.internal.*;
19 * Classes which implement this interface provide a method
20 * that can provide the background color for a line that
23 * @see LineBackgroundEvent
24 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
27 public interface LineBackgroundListener extends SWTEventListener {
30 * This method is called when a line is about to be drawn in order to get its
33 * The following event fields are used:<ul>
34 * <li>event.lineOffset line start offset (input)</li>
35 * <li>event.lineText line text (input)</li>
36 * <li>event.lineBackground line background color (output)</li>
39 * @param event the given event
40 * @see LineBackgroundEvent
42 public void lineGetBackground(LineBackgroundEvent event);