KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > text > TabExpander


1 /*
2  * @(#)TabExpander.java 1.15 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package javax.swing.text;
8
9
10 /**
11  * Simple interface to allow for different types of
12  * implementations of tab expansion.
13  *
14  * @author Timothy Prinzing
15  * @version 1.15 12/19/03
16  */

17 public interface TabExpander {
18
19     /**
20      * Returns the next tab stop position given a reference
21      * position. Values are expressed in points.
22      *
23      * @param x the position in points >= 0
24      * @param tabOffset the position within the text stream
25      * that the tab occurred at >= 0.
26      * @return the next tab stop >= 0
27      */

28     float nextTabStop(float x, int tabOffset);
29
30 }
31
Popular Tags