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. * DomainInfo.java
  28. * ---------------
  29. * (C) Copyright 2000-2005, by Object Refinery Limited.
  30. *
  31. * Original Author: David Gilbert (for Object Refinery Limited);
  32. * Contributor(s): -;
  33. *
  34. * $Id: DomainInfo.java,v 1.6 2005/03/04 11:44:59 mungady Exp $
  35. *
  36. * Changes (from 18-Sep-2001)
  37. * --------------------------
  38. * 18-Sep-2001 : Added standard header and fixed DOS encoding problem (DG);
  39. * 15-Nov-2001 : Moved to package com.jrefinery.data.* (DG);
  40. * Updated Javadoc comments (DG);
  41. * 22-Apr-2002 : Added getValueRange() method (DG);
  42. * 12-Jul-2002 : Renamed getValueRange() --> getDomainRange() (DG);
  43. * 06-Oct-2004 : Renamed getDomainRange() --> getDomainBounds() (DG);
  44. * 17-Nov-2004 : Added 'includeInterval' argument to all methods (DG);
  45. * 11-Jan-2005 : Removed deprecated code in preparation for the 1.0.0
  46. * release (DG);
  47. *
  48. */
  49. package org.jfree.data;
  50. /**
  51. * An interface (optional) that can be implemented by a dataset to assist in
  52. * determining the minimum and maximum values.
  53. */
  54. public interface DomainInfo {
  55. /**
  56. * Returns the minimum x-value in the dataset.
  57. *
  58. * @param includeInterval a flag that determines whether or not the
  59. * x-interval is taken into account.
  60. *
  61. * @return The minimum value.
  62. */
  63. public double getDomainLowerBound(boolean includeInterval);
  64. /**
  65. * Returns the maximum x-value in the dataset.
  66. *
  67. * @param includeInterval a flag that determines whether or not the
  68. * x-interval is taken into account.
  69. *
  70. * @return The maximum value.
  71. */
  72. public double getDomainUpperBound(boolean includeInterval);
  73. /**
  74. * Returns the range of the values in this dataset's domain.
  75. *
  76. * @param includeInterval a flag that determines whether or not the
  77. * x-interval is taken into account.
  78. *
  79. * @return The range.
  80. */
  81. public Range getDomainBounds(boolean includeInterval);
  82. }