KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > ddf > EscherPropertyMetaData


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18 package org.apache.poi.ddf;
19
20 /**
21  * This class stores the type and description of an escher property.
22  *
23  * @author Glen Stampoultzis (glens at apache.org)
24  */

25 public class EscherPropertyMetaData
26 {
27     // Escher property types.
28
public final static byte TYPE_UNKNOWN = (byte) 0;
29     public final static byte TYPE_BOOLEAN = (byte) 1;
30     public final static byte TYPE_RGB = (byte) 2;
31     public final static byte TYPE_SHAPEPATH = (byte) 3;
32     public final static byte TYPE_SIMPLE = (byte)4;
33     public final static byte TYPE_ARRAY = (byte)5;;
34
35     private String JavaDoc description;
36     private byte type;
37
38
39     /**
40      * @param description The description of the escher property.
41      */

42     public EscherPropertyMetaData( String JavaDoc description )
43     {
44         this.description = description;
45     }
46
47     /**
48      *
49      * @param description The description of the escher property.
50      * @param type The type of the property.
51      */

52     public EscherPropertyMetaData( String JavaDoc description, byte type )
53     {
54         this.description = description;
55         this.type = type;
56     }
57
58     public String JavaDoc getDescription()
59     {
60         return description;
61     }
62
63     public byte getType()
64     {
65         return type;
66     }
67
68 }
69
Popular Tags