KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > batik > svggen > SVGStylingAttributes


1 /*
2
3    Copyright 2001,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.svggen;
19
20 import java.util.HashSet JavaDoc;
21 import java.util.Set JavaDoc;
22
23 /**
24  * Defines the set of attributes from Exchange SVG that
25  * are defined as styling properties in Stylable SVG.
26  *
27  * @author <a HREF="mailto:vincent.hardy@eng.sun.com">Vincent Hardy</a>
28  * @version $Id: SVGStylingAttributes.java,v 1.5 2004/08/18 07:15:09 vhardy Exp $
29  */

30 public class SVGStylingAttributes implements SVGSyntax{
31     static Set JavaDoc attrSet = new HashSet JavaDoc();
32
33     static {
34         attrSet.add(SVG_CLIP_PATH_ATTRIBUTE);
35         attrSet.add(SVG_COLOR_INTERPOLATION_ATTRIBUTE);
36         attrSet.add(SVG_COLOR_RENDERING_ATTRIBUTE);
37         attrSet.add(SVG_ENABLE_BACKGROUND_ATTRIBUTE);
38         attrSet.add(SVG_FILL_ATTRIBUTE);
39         attrSet.add(SVG_FILL_OPACITY_ATTRIBUTE);
40         attrSet.add(SVG_FILL_RULE_ATTRIBUTE);
41         attrSet.add(SVG_FILTER_ATTRIBUTE);
42         attrSet.add(SVG_FLOOD_COLOR_ATTRIBUTE);
43         attrSet.add(SVG_FLOOD_OPACITY_ATTRIBUTE);
44         attrSet.add(SVG_FONT_FAMILY_ATTRIBUTE);
45         attrSet.add(SVG_FONT_SIZE_ATTRIBUTE);
46         attrSet.add(SVG_FONT_WEIGHT_ATTRIBUTE);
47         attrSet.add(SVG_FONT_STYLE_ATTRIBUTE);
48         attrSet.add(SVG_IMAGE_RENDERING_ATTRIBUTE);
49         attrSet.add(SVG_MASK_ATTRIBUTE);
50         attrSet.add(SVG_OPACITY_ATTRIBUTE);
51         attrSet.add(SVG_SHAPE_RENDERING_ATTRIBUTE);
52         attrSet.add(SVG_STOP_COLOR_ATTRIBUTE);
53         attrSet.add(SVG_STOP_OPACITY_ATTRIBUTE);
54         attrSet.add(SVG_STROKE_ATTRIBUTE);
55         attrSet.add(SVG_STROKE_OPACITY_ATTRIBUTE);
56         attrSet.add(SVG_STROKE_DASHARRAY_ATTRIBUTE);
57         attrSet.add(SVG_STROKE_DASHOFFSET_ATTRIBUTE);
58         attrSet.add(SVG_STROKE_LINECAP_ATTRIBUTE);
59         attrSet.add(SVG_STROKE_LINEJOIN_ATTRIBUTE);
60         attrSet.add(SVG_STROKE_MITERLIMIT_ATTRIBUTE);
61         attrSet.add(SVG_STROKE_WIDTH_ATTRIBUTE);
62         attrSet.add(SVG_TEXT_RENDERING_ATTRIBUTE);
63     }
64
65     /**
66      * Attributes that represent styling properties
67      */

68     public static final Set JavaDoc set = attrSet;
69 }
70
Popular Tags