KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > css > engine > value > css2 > FontVariantManager


1 /*
2
3    Copyright 2002-2003 The 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.batik.css.engine.value.css2;
19
20 import org.apache.batik.css.engine.value.IdentifierManager;
21 import org.apache.batik.css.engine.value.StringMap;
22 import org.apache.batik.css.engine.value.Value;
23 import org.apache.batik.css.engine.value.ValueConstants;
24 import org.apache.batik.util.CSSConstants;
25
26 /**
27  * This class provides a manager for the 'font-variant' property values.
28  *
29  * @author <a HREF="mailto:stephane@hillion.org">Stephane Hillion</a>
30  * @version $Id: FontVariantManager.java,v 1.5 2004/12/03 12:20:15 deweese Exp $
31  */

32 public class FontVariantManager extends IdentifierManager {
33     
34     /**
35      * The identifier values.
36      */

37     protected final static StringMap values = new StringMap();
38     static {
39     values.put(CSSConstants.CSS_NORMAL_VALUE,
40                    ValueConstants.NORMAL_VALUE);
41     values.put(CSSConstants.CSS_SMALL_CAPS_VALUE,
42                    ValueConstants.SMALL_CAPS_VALUE);
43     }
44
45     /**
46      * Implements {@link
47      * org.apache.batik.css.engine.value.ValueManager#isInheritedProperty()}.
48      */

49     public boolean isInheritedProperty() {
50     return true;
51     }
52
53     /**
54      * Implements {@link
55      * org.apache.batik.css.engine.value.ValueManager#getPropertyName()}.
56      */

57     public String JavaDoc getPropertyName() {
58     return CSSConstants.CSS_FONT_VARIANT_PROPERTY;
59     }
60     
61     /**
62      * Implements {@link
63      * org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}.
64      */

65     public Value getDefaultValue() {
66         return ValueConstants.NORMAL_VALUE;
67     }
68
69     /**
70      * Implements {@link IdentifierManager#getIdentifiers()}.
71      */

72     public StringMap getIdentifiers() {
73         return values;
74     }
75 }
76
Popular Tags