1. /* ===========================================================
  2. * JFreeChart : a free chart library for the Java(tm) platform
  3. * ===========================================================
  4. *
  5. * (C) Copyright 2000-2004, 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. * CombinationDataset.java
  26. * -----------------------
  27. * (C) Copyright 2001-2004, by Bill Kelemen.
  28. *
  29. * Original Author: Bill Kelemen;
  30. * Contributor(s): -;
  31. *
  32. * $Id: CombinationDataset.java,v 1.1 2004/08/31 15:27:03 mungady Exp $
  33. *
  34. * Changes
  35. * -------
  36. * 06-Dec-2001 : Version 1 (BK);
  37. *
  38. */
  39. package org.jfree.data.general;
  40. /**
  41. * Interface that describes the new methods that any combined dataset needs to
  42. * implement. A combined dataset object will combine one or more datasets and
  43. * expose a sub-set or union of the combined datasets.
  44. *
  45. * @author Bill Kelemenm (bill@kelemen-usa.com)
  46. */
  47. public interface CombinationDataset {
  48. ///////////////////////////////////////////////////////////////////////////
  49. // New methods from CombinationDataset
  50. ///////////////////////////////////////////////////////////////////////////
  51. /**
  52. * Returns the parent Dataset of this combination. If there is more than
  53. * one parent, or a child is found that is not a combination, then returns
  54. * <code>null</code>.
  55. *
  56. * @return the parent Dataset of this combination.
  57. */
  58. public SeriesDataset getParent();
  59. /**
  60. * Returns a map or indirect indexing form our series into parent's series.
  61. *
  62. * @return a map or indirect indexing form our series into parent's series.
  63. */
  64. public int[] getMap();
  65. }