home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / jfc.bin / TabExpander.java < prev    next >
Text File  |  1998-02-26  |  1KB  |  44 lines

  1. /*
  2.  * @(#)TabExpander.java    1.6 97/12/18
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20. package com.sun.java.swing.text;
  21.  
  22.  
  23. /**
  24.  * Simple interface to allow for different types of 
  25.  * implementations of tab expansion.
  26.  * 
  27.  * @author  Timothy Prinzing
  28.  * @version 1.6 12/18/97
  29.  */
  30. public interface TabExpander {
  31.  
  32.     /**
  33.      * Returns the next tab stop position given a reference 
  34.      * position.  Values are expressed in points.
  35.      *
  36.      * @param x the position
  37.      * @param tabOffset the position within the text stream
  38.      *   that the tab occurred at.
  39.      * @return the next tab stop
  40.      */
  41.     float nextTabStop(float x, int tabOffset);
  42.  
  43. }
  44.