KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > krysalis > jcharts > types > Type


1 /***********************************************************************************************
2  * Copyright 2002 (C) Nathaniel G. Auvil. All Rights Reserved.
3  *
4  * Redistribution and use of this software and associated documentation
5  * ("Software"), with or without modification, are permitted provided
6  * that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain copyright
9  * statements and notices. Redistributions must also contain a
10  * copy of this document.
11  *
12  * 2. Redistributions in binary form must reproduce the
13  * above copyright notice, this list of conditions and the
14  * following disclaimer in the documentation and/or other
15  * materials provided with the distribution.
16  *
17  * 3. The name "jCharts" or "Nathaniel G. Auvil" must not be used to
18  * endorse or promote products derived from this Software without
19  * prior written permission of Nathaniel G. Auvil. For written
20  * permission, please contact nathaniel_auvil@users.sourceforge.net
21  *
22  * 4. Products derived from this Software may not be called "jCharts"
23  * nor may "jCharts" appear in their names without prior written
24  * permission of Nathaniel G. Auvil. jCharts is a registered
25  * trademark of Nathaniel G. Auvil.
26  *
27  * 5. Due credit should be given to the jCharts Project
28  * (http://jcharts.sourceforge.net/).
29  *
30  * THIS SOFTWARE IS PROVIDED BY Nathaniel G. Auvil AND CONTRIBUTORS
31  * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
32  * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
33  * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
34  * jCharts OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
35  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
36  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
41  * OF THE POSSIBILITY OF SUCH DAMAGE.
42  ************************************************************************************************/

43
44 package org.krysalis.jcharts.types;
45
46
47 import java.io.Serializable JavaDoc;
48
49
50 /*****************************************************************************************
51  * Provides a common base class for all types.
52  *
53  * @author Nathaniel Auvil
54  * @version $Id: Type.java,v 1.2 2004/05/31 15:38:56 nathaniel_auvil Exp $
55  ******************************************************************************************/

56 abstract public class Type implements Serializable JavaDoc
57 {
58     private int typeCode;
59
60
61     /***************************************************************************************
62      *
63      * @param typeCode
64      ****************************************************************************************/

65     Type( int typeCode )
66     {
67         this.typeCode=typeCode;
68     }
69
70
71     /***************************************************************************************
72      *
73      * @return int
74      ****************************************************************************************/

75     public int getTypeCode()
76     {
77         return this.typeCode;
78     }
79
80 }
81
Popular Tags