KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jfree > chart > renderer > CategoryURLGeneratorTable


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  * CategoryURLGeneratorTable.java
24  * ------------------------------
25  * (C) Copyright 2003 by Object Refinery Limited.
26  *
27  * Original Author: David Gilbert (for Object Refinery Limited);
28  * Contributor(s): -;
29  *
30  * $Id: CategoryURLGeneratorTable.java,v 1.4 2003/10/28 16:30:33 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 15-Jul-2003 : Version 1 (DG);
35  * 28-Oct-2003 : Deprecated this class, it is no longer used by JFreeChart (DG);
36  *
37  */

38
39 package org.jfree.chart.renderer;
40
41 import java.io.Serializable JavaDoc;
42
43 import org.jfree.chart.urls.CategoryURLGenerator;
44 import org.jfree.util.ObjectTable;
45
46 /**
47  * A lookup table for URL generators. Now based on the object table.
48  *
49  * @author David Gilbert
50  *
51  * @deprecated This class is no longer being used in JFreeChart and will be removed before
52  * version 1.0.0 is released.
53  */

54 public class CategoryURLGeneratorTable extends ObjectTable implements Serializable JavaDoc {
55
56     /**
57      * Creates a new URL generator table.
58      */

59     public CategoryURLGeneratorTable() {
60     }
61
62     /**
63      * Returns the URL generator object from a particular cell in the table.
64      *
65      * @param row the row index (zero-based).
66      * @param column the column index (zero-based).
67      *
68      * @return The URL generator.
69      */

70     public CategoryURLGenerator getURLGenerator(int row, int column) {
71
72         return (CategoryURLGenerator) getObject(row, column);
73
74     }
75
76     /**
77      * Sets the URL generator for a cell in the table. The table is expanded if necessary.
78      *
79      * @param row the row index (zero-based).
80      * @param column the column index (zero-based).
81      * @param generator the URL generator.
82      */

83     public void setURLGenerator(int row, int column, CategoryURLGenerator generator) {
84
85         setObject(row, column, generator);
86
87     }
88
89     /**
90      * Tests this paint table for equality with another object (typically another label generator
91      * table).
92      *
93      * @param o the other object.
94      *
95      * @return A boolean.
96      */

97     public boolean equals(Object JavaDoc o) {
98
99         if (o instanceof CategoryURLGeneratorTable) {
100             return super.equals(o);
101         }
102
103         return false;
104
105     }
106 }
107
108
Popular Tags