KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
16  * This listener interface may be implemented in order to receive
17  * BidiSegmentEvents.
18  * @see BidiSegmentEvent
19  */

20 public interface BidiSegmentListener extends SWTEventListener {
21
22 /**
23  * This method is called when a line needs to be reordered for
24  * measuring or rendering in a bidi locale.
25  * <p>
26  * The following event fields are used:<ul>
27  * <li>event.lineOffset line start offset (input)</li>
28  * <li>event.lineText line text (input)</li>
29  * <li>event.segments text segments that should be reordered
30  * separately. (output)</li>
31  * </ul>
32  *
33  * @param event the given event
34  * separately. (output)
35  * @see BidiSegmentEvent
36  */

37 public void lineGetSegments(BidiSegmentEvent event);
38
39 }
40
41
Popular Tags