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. * XisSymbolic.java
  26. * ----------------
  27. *
  28. * Original Author: Anthony Boulestreau;
  29. * Contributor(s): David Gilbert (for Object Refinery Limited);
  30. *
  31. * $Id: XisSymbolic.java,v 1.1 2004/08/31 15:36:12 mungady Exp $
  32. *
  33. * Changes (from 21-Aug-2001)
  34. * --------------------------
  35. * 29-Mar-2002 : First version (AB);
  36. * 07-Oct-2002 : Fixed errors reported by Checkstyle (DG);
  37. *
  38. */
  39. package org.jfree.data.xy;
  40. /**
  41. * Represent a data set where X is a symbolic values. Each symbolic value is
  42. * linked with an Integer.
  43. *
  44. * @author Anthony Boulestreau
  45. */
  46. public interface XisSymbolic {
  47. /**
  48. * Returns the list of symbolic values.
  49. *
  50. * @return array of symbolic value.
  51. */
  52. public String[] getXSymbolicValues();
  53. /**
  54. * Returns the symbolic value of the data set specified by
  55. * <CODE>series</CODE> and <CODE>item</CODE> parameters.
  56. *
  57. * @param series value of the serie.
  58. * @param item value of the item.
  59. *
  60. * @return the symbolic value.
  61. */
  62. public String getXSymbolicValue(int series, int item);
  63. /**
  64. * Returns the symbolic value linked with the specified
  65. * <CODE>Integer</CODE>.
  66. *
  67. * @param val value of the integer linked with the symbolic value.
  68. *
  69. * @return the symbolic value.
  70. */
  71. public String getXSymbolicValue(Integer val);
  72. }