KickJava   Java API By Example, From Geeks To Geeks.

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


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  * ItemLabelAnchorTable.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: ItemLabelAnchorTable.java,v 1.6 2003/10/28 16:38:41 mungady Exp $
31  *
32  * Changes
33  * -------
34  * 11-Jun-2003 : Version 1 (DG);
35  * 22-Oct-2003 : Deprecated (DG);
36  *
37  */

38
39 package org.jfree.chart.renderer;
40
41 import java.io.Serializable JavaDoc;
42
43 import org.jfree.util.ObjectTable;
44
45 /**
46  * A table of item label anchors.
47  *
48  * @author David Gilbert
49  *
50  * @deprecated This class is longer used in JFreeChart and will be removed prior to the
51  * release of JFreeChart 1.0.0.
52  */

53 public class ItemLabelAnchorTable extends ObjectTable implements Serializable JavaDoc {
54
55     /**
56      * Creates a new item label anchor table.
57      */

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

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

82     public void setAnchor(int row, int column, ItemLabelAnchor anchor) {
83
84         setObject(row, column, anchor);
85
86     }
87
88     /**
89      * Tests this font table for equality with another object (typically also a font table).
90      *
91      * @param o the other object.
92      *
93      * @return A font.
94      */

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