1 /*******************************************************************************
2 * Copyright (c) 2000, 2011 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.events.*;
17 import org.eclipse.swt.graphics.*;
20 * This event is sent when a line is about to be drawn.
22 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
24 public class LineBackgroundEvent extends TypedEvent {
29 public int lineOffset;
34 public String lineText;
37 * line background color
39 public Color lineBackground;
41 static final long serialVersionUID = 3978711687853324342L;
44 * Constructs a new instance of this class based on the
45 * information in the given event.
47 * @param e the event containing the information
49 public LineBackgroundEvent(StyledTextEvent e) {
51 lineOffset = e.detail;
53 lineBackground = e.lineBackground;