2 * Copyright (c) 2017 Angelo ZERR.
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 * Angelo Zerr <angelo.zerr@gmail.com> - Customize different line spacing of StyledText - Bug 522020
14 package org.eclipse.swt.custom;
17 * Line spacing provider used to customize different line spacing for some lines
18 * of {@link StyledText}
23 public interface StyledTextLineSpacingProvider {
26 * Returns the line spacing of the given line index and null otherwise. In this
27 * case, it will use the {@link StyledText#getLineSpacing()}.
31 * @return the line spacing of the given line index and null otherwise. In this
32 * case, it will use the {@link StyledText#getLineSpacing()}.
35 Integer getLineSpacing(int lineIndex);