KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > plot > DrawingSupplier


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  * DrawingSupplier.java
28  * --------------------
29  * (C) Copyright 2003, 2004, by Object Refinery Limited.
30  *
31  * Original Author: David Gilbert (for Object Refinery Limited);
32  * Contributor(s): -;
33  *
34  * $Id: DrawingSupplier.java,v 1.3 2005/03/29 12:54:57 mungady Exp $
35  *
36  * Changes
37  * -------
38  * 16-Jan-2003 : Version 1 (DG);
39  * 17-Jan-2003 : Renamed PaintSupplier --> DrawingSupplier (DG);
40  *
41  */

42
43 package org.jfree.chart.plot;
44
45 import java.awt.Paint JavaDoc;
46 import java.awt.Shape JavaDoc;
47 import java.awt.Stroke JavaDoc;
48
49 /**
50  * A supplier of <code>Paint</code> and <code>Stroke</code> objects.
51  * <p>
52  * To support the cloning of charts, classes that implement this interface
53  * should also implement <code>PublicCloneable</code>.
54  */

55 public interface DrawingSupplier {
56
57     /**
58      * Returns the next paint in a sequence maintained by the supplier.
59      *
60      * @return The paint.
61      */

62     public Paint JavaDoc getNextPaint();
63
64     /**
65      * Returns the next outline paint in a sequence maintained by the supplier.
66      *
67      * @return The paint.
68      */

69     public Paint JavaDoc getNextOutlinePaint();
70
71     /**
72      * Returns the next <code>Stroke</code> object in a sequence maintained by
73      * the supplier.
74      *
75      * @return The stroke.
76      */

77     public Stroke JavaDoc getNextStroke();
78
79     /**
80      * Returns the next <code>Stroke</code> object in a sequence maintained by
81      * the supplier.
82      *
83      * @return The stroke.
84      */

85     public Stroke JavaDoc getNextOutlineStroke();
86
87     /**
88      * Returns the next <code>Shape</code> object in a sequence maintained by
89      * the supplier.
90      *
91      * @return The shape.
92      */

93     public Shape JavaDoc getNextShape();
94
95 }
96
Popular Tags