KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > ShapeFactory


1 /* ======================================
2  * JFreeChart : a free Java chart library
3  * ======================================
4  *
5  * Project Info: http://www.jfree.org/jfreechart/index.html
6  * Project Lead: David Gilbert (david.gilbert@object-refinery.com);
7  *
8  * (C) Copyright 2000-2003, by Object Refinery Limited and Contributors.
9  *
10  * This library is free software; you can redistribute it and/or modify it under the terms
11  * of the GNU Lesser General Public License as published by the Free Software Foundation;
12  * either version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License along with this
19  * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20  * Boston, MA 02111-1307, USA.
21  *
22  * -----------------
23  * ShapeFactory.java
24  * -----------------
25  * (C) Copyright 2002, 2003, by Jeremy Bowman.
26  *
27  * Original Author: Jeremy Bowman;
28  * Contributor(s): -;
29  *
30  * $Id: ShapeFactory.java,v 1.3 2003/08/06 15:07:17 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 13-May-2002 : Version 1 (JB);
35  * 26-Sep-2002 : Fixed errors reported by Checkstyle (DG);
36  * 06-Aug-2003 : No longer required, so deprecated (DG);
37  *
38  */

39
40 package org.jfree.chart;
41
42 import java.awt.Shape JavaDoc;
43
44 /**
45  * Interface to be implemented by classes which provide shapes for indicating
46  * data points on a Plot.
47  *
48  * @deprecated This interface is no longer used, shapes are obtained from the DrawingSupplier.
49  *
50  * @author Jeremy Bowman
51  */

52 public interface ShapeFactory {
53
54     /**
55      * Returns a Shape that can be used in plotting data. Used in XYPlots.
56      *
57      * @param series the index of the series.
58      * @param item the index of the item.
59      * @param x x-coordinate of the item.
60      * @param y y-coordinate of the item.
61      * @param scale the size.
62      *
63      * @return a Shape that can be used in plotting data.
64     */

65     public Shape JavaDoc getShape(int series, int item, double x, double y,
66                           double scale);
67
68     /**
69      * Returns a Shape that can be used in plotting data. Used in
70      * CategoryPlots.
71      *
72      * @param series the index of the series.
73      * @param category the category.
74      * @param x x-coordinate of the category.
75      * @param y y-coordinate of the category.
76      * @param scale the size.
77      *
78      * @return a Shape that can be used in plotting data.
79      */

80     public Shape JavaDoc getShape(int series, Object JavaDoc category, double x, double y,
81                           double scale);
82
83 }
84
Popular Tags