1. /*
  2. * @(#)RowMapper.java 1.9 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.swing.tree;
  8. import javax.swing.tree.TreePath;
  9. /**
  10. * Defines the requirements for an object that translates paths in
  11. * the tree into display rows.
  12. *
  13. * @version 1.9 11/29/01
  14. * @author Scott Violet
  15. */
  16. public interface RowMapper
  17. {
  18. /**
  19. * Returns the rows that the TreePath instances in <code>path</code>
  20. * are being displayed at. The receiver should return an array of
  21. * the same length as that passed in, and if one of the TreePaths
  22. * in <code>path</code> is not valid its entry in the array should
  23. * be set to -1.
  24. */
  25. int[] getRowsForPaths(TreePath[] path);
  26. }