1. /*
  2. * @(#)RowMapper.java 1.10 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.tree;
  11. import javax.swing.tree.TreePath;
  12. /**
  13. * Defines the requirements for an object that translates paths in
  14. * the tree into display rows.
  15. *
  16. * @version 1.10 02/02/00
  17. * @author Scott Violet
  18. */
  19. public interface RowMapper
  20. {
  21. /**
  22. * Returns the rows that the TreePath instances in <code>path</code>
  23. * are being displayed at. The receiver should return an array of
  24. * the same length as that passed in, and if one of the TreePaths
  25. * in <code>path</code> is not valid its entry in the array should
  26. * be set to -1.
  27. */
  28. int[] getRowsForPaths(TreePath[] path);
  29. }