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 LineStyleListener extends SWTEventListener { 16 /** 17 * This method is called when a line is about to be drawn in order to get the 18 * line's style information. 19 * <p> 20 * The following event fields are used:<ul> 21 * <li>event.lineOffset line start offset (input)</li> 22 * <li>event.lineText line text (input)</li> 23 * <li>event.styles array of StyleRanges, need to be in order (output)</li> 24 * </ul> 25 * 26 * @param event the given event 27 * @see LineStyleEvent 28 */ 29 public void lineGetStyle(LineStyleEvent event); 30 } 31