1. /* ===========================================================
  2. * JFreeChart : a free chart library for the Java(tm) platform
  3. * ===========================================================
  4. *
  5. * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors.
  6. *
  7. * Project Info: http://www.jfree.org/jfreechart/index.html
  8. *
  9. * This library is free software; you can redistribute it and/or modify it under the terms
  10. * of the GNU Lesser General Public License as published by the Free Software Foundation;
  11. * either version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
  14. * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  15. * See the GNU Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public License along with this
  18. * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
  19. * Boston, MA 02111-1307, USA.
  20. *
  21. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  22. * in the United States and other countries.]
  23. *
  24. * -------------
  25. * Values2D.java
  26. * -------------
  27. * (C) Copyright 2002-2005, by Object Refinery Limited.
  28. *
  29. * Original Author: David Gilbert (for Object Refinery Limited);
  30. * Contributor(s): -;
  31. *
  32. * $Id: Values2D.java,v 1.2 2005/01/12 14:46:50 mungady Exp $
  33. *
  34. * Changes:
  35. * --------
  36. * 28-Oct-2002 : Version 1 (DG);
  37. *
  38. */
  39. package org.jfree.data;
  40. /**
  41. * A general purpose interface that can be used to access a table of values.
  42. */
  43. public interface Values2D {
  44. /**
  45. * Returns the number of rows in the table.
  46. *
  47. * @return The row count.
  48. */
  49. public int getRowCount();
  50. /**
  51. * Returns the number of columns in the table.
  52. *
  53. * @return The column count.
  54. */
  55. public int getColumnCount();
  56. /**
  57. * Returns a value from the table.
  58. *
  59. * @param row the row index (zero-based).
  60. * @param column the column index (zero-based).
  61. *
  62. * @return The value (possibly <code>null</code>).
  63. *
  64. * @throws IndexOutOfBoundsException if the <code>row</code>
  65. * or <code>column</code> is out of bounds.
  66. */
  67. public Number getValue(int row, int column);
  68. }