1. /*
  2. * @(#)TabExpander.java 1.12 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.text;
  11. /**
  12. * Simple interface to allow for different types of
  13. * implementations of tab expansion.
  14. *
  15. * @author Timothy Prinzing
  16. * @version 1.12 02/02/00
  17. */
  18. public interface TabExpander {
  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. }