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. * Simple interface to allow for different types of
  10. * implementations of tab expansion.
  11. *
  12. * @author Timothy Prinzing
  13. * @version 1.15 12/19/03
  14. */
  15. public interface TabExpander {
  16. /**
  17. * Returns the next tab stop position given a reference
  18. * position. Values are expressed in points.
  19. *
  20. * @param x the position in points >= 0
  21. * @param tabOffset the position within the text stream
  22. * that the tab occurred at >= 0.
  23. * @return the next tab stop >= 0
  24. */
  25. float nextTabStop(float x, int tabOffset);
  26. }