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
  10. * under the terms of the GNU Lesser General Public License as published by
  11. * the Free Software Foundation; either version 2.1 of the License, or
  12. * (at your option) any later version.
  13. *
  14. * This library is distributed in the hope that it will be useful, but
  15. * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  16. * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
  17. * License for more details.
  18. *
  19. * You should have received a copy of the GNU Lesser General Public License
  20. * along with this library; if not, write to the Free Software Foundation,
  21. * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
  22. *
  23. * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
  24. * in the United States and other countries.]
  25. *
  26. * -------------------
  27. * ContourDataset.java
  28. * -------------------
  29. * (C) Copyright 2002-2004, by David M. O'Donnell and Contributors.
  30. *
  31. * Original Author: David M. O'Donnell;
  32. * Contributor(s): David Gilbert (for Object Refinery Limited);
  33. *
  34. * $Id: ContourDataset.java,v 1.2 2005/02/24 10:11:19 mungady Exp $
  35. *
  36. * Changes (from 23-Jan-2003)
  37. * --------------------------
  38. * 23-Jan-2003 : Added standard header (DG);
  39. * 17-Jan-2004 : Added methods from DefaultContourDataset that are referenced
  40. * by ContourPlot. See bug 741048 (DG);
  41. *
  42. */
  43. package org.jfree.data.contour;
  44. import org.jfree.data.Range;
  45. import org.jfree.data.xy.XYZDataset;
  46. /**
  47. * The interface through which JFreeChart obtains data in the form of (x, y, z)
  48. * items - used for XY and XYZ plots.
  49. *
  50. * @author David M. O'Donnell
  51. */
  52. public interface ContourDataset extends XYZDataset {
  53. /**
  54. * Returns the smallest Z data value.
  55. *
  56. * @return The minimum Z value.
  57. */
  58. public double getMinZValue();
  59. /**
  60. * Returns the largest Z data value.
  61. *
  62. * @return The maximum Z value.
  63. */
  64. public double getMaxZValue();
  65. /**
  66. * Returns the array of Numbers representing the x data values.
  67. *
  68. * @return The array of x values.
  69. */
  70. public Number[] getXValues();
  71. /**
  72. * Returns the array of Numbers representing the y data values.
  73. *
  74. * @return The array of y values.
  75. */
  76. public Number[] getYValues();
  77. /**
  78. * Returns the array of Numbers representing the z data values.
  79. *
  80. * @return The array of z values.
  81. */
  82. public Number[] getZValues();
  83. /**
  84. * Returns an int array contain the index into the x values.
  85. *
  86. * @return The X values.
  87. */
  88. public int[] indexX();
  89. /**
  90. * Returns the index of the xvalues.
  91. *
  92. * @return The x values.
  93. */
  94. public int[] getXIndices();
  95. /**
  96. * Returns the maximum z-value within visible region of plot.
  97. *
  98. * @param x the x-value.
  99. * @param y the y-value.
  100. *
  101. * @return The maximum z-value.
  102. */
  103. public Range getZValueRange(Range x, Range y);
  104. /**
  105. * Returns true if axis are dates.
  106. *
  107. * @param axisNumber the axis where 0-x, 1-y, and 2-z.
  108. *
  109. * @return <code>true</code> or <code>false</code>.
  110. */
  111. public boolean isDateAxis(int axisNumber);
  112. }