1 /**********************************************
2 * Copyright (C) 2010 Lukas Laag
3 * This file is part of lib-gwt-svg.
4 *
5 * libgwtsvg is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * libgwtsvg is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with libgwtsvg. If not, see http://www.gnu.org/licenses/
17 **********************************************/
18 /*
19 * Copyright (c) 2004 World Wide Web Consortium,
20 *
21 * (Massachusetts Institute of Technology, European Research Consortium for
22 * Informatics and Mathematics, Keio University). All Rights Reserved. This
23 * work is distributed under the W3C(r) Software License [1] in the hope that
24 * it will be useful, but WITHOUT ANY WARRANTY; without even the implied
25 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
26 *
27 * [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
28 */
29
30 package org.vectomatic.dom.svg;
31
32 import org.vectomatic.dom.svg.impl.SVGFECompositeElement;
33 import org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes;
34 import org.vectomatic.dom.svg.utils.DOMHelper;
35 import org.vectomatic.dom.svg.utils.SVGConstants;
36
37 import com.google.gwt.dom.client.TagName;
38
39 /**
40 * The {@link org.vectomatic.dom.svg.OMSVGFECompositeElement} interface corresponds
41 * to the <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
42 * title='feComposite element specification'>feComposite</a> element.
43 */
44 @TagName("feComposite")
45 public class OMSVGFECompositeElement extends OMSVGElement implements ISVGFilterPrimitiveStandardAttributes {
46 /**
47 * The type is not one of predefined types. It is invalid to attempt to define
48 * a new value of this type or to attempt to switch an existing value to this
49 * type.
50 */
51 public static final short SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0;
52 /**
53 * Corresponds to value <span class="attr-value">'over'</span>.
54 */
55 public static final short SVG_FECOMPOSITE_OPERATOR_OVER = 1;
56 /**
57 * Corresponds to value <span class="attr-value">'in'</span>.
58 */
59 public static final short SVG_FECOMPOSITE_OPERATOR_IN = 2;
60 /**
61 * Corresponds to value <span class="attr-value">'out'</span>.
62 */
63 public static final short SVG_FECOMPOSITE_OPERATOR_OUT = 3;
64 /**
65 * Corresponds to value <span class="attr-value">'atop'</span>.
66 */
67 public static final short SVG_FECOMPOSITE_OPERATOR_ATOP = 4;
68 /**
69 * Corresponds to value <span class="attr-value">'xor'</span>.
70 */
71 public static final short SVG_FECOMPOSITE_OPERATOR_XOR = 5;
72 /**
73 * Corresponds to value <span class="attr-value">'arithmetic'</span>.
74 */
75 public static final short SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6;
76 public OMSVGFECompositeElement() {
77 this((SVGFECompositeElement)DOMHelper.createElementNS(DOMHelper.getCurrentDocument(), SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_FE_COMPOSITE_TAG).cast());
78 }
79
80 protected OMSVGFECompositeElement(SVGFECompositeElement ot) {
81 super(ot);
82 }
83
84 // Implementation of the svg::SVGFECompositeElement W3C IDL interface
85 /**
86 * Corresponds to attribute <code>in</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
87 * title='feComposite element specification'>feComposite</a> element.
88 */
89 public final OMSVGAnimatedString getIn1() {
90 return ((SVGFECompositeElement)ot).getIn1();
91 }
92 /**
93 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getIn2()}
94 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
95 * title='feComposite element specification'>feComposite</a> element.
96 */
97 public final OMSVGAnimatedString getIn2() {
98 return ((SVGFECompositeElement)ot).getIn2();
99 }
100 /**
101 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getOperator()}
102 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
103 * title='feComposite element specification'>feComposite</a> element. Takes
104 * one of the SVG_FECOMPOSITE_OPERATOR_ constants defined on this interface.
105 */
106 public final OMSVGAnimatedEnumeration getOperator() {
107 return ((SVGFECompositeElement)ot).getOperator();
108 }
109 /**
110 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getK1()}
111 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
112 * title='feComposite element specification'>feComposite</a> element.
113 */
114 public final OMSVGAnimatedNumber getK1() {
115 return ((SVGFECompositeElement)ot).getK1();
116 }
117 /**
118 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getK2()}
119 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
120 * title='feComposite element specification'>feComposite</a> element.
121 */
122 public final OMSVGAnimatedNumber getK2() {
123 return ((SVGFECompositeElement)ot).getK2();
124 }
125 /**
126 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getK3()}
127 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
128 * title='feComposite element specification'>feComposite</a> element.
129 */
130 public final OMSVGAnimatedNumber getK3() {
131 return ((SVGFECompositeElement)ot).getK3();
132 }
133 /**
134 * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFECompositeElement#getK4()}
135 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feCompositeElement'
136 * title='feComposite element specification'>feComposite</a> element.
137 */
138 public final OMSVGAnimatedNumber getK4() {
139 return ((SVGFECompositeElement)ot).getK4();
140 }
141
142 // Implementation of the svg::SVGFilterPrimitiveStandardAttributes W3C IDL interface
143 /**
144 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getX()}
145 * on the given element.
146 */
147 public final OMSVGAnimatedLength getX() {
148 return ((SVGFECompositeElement)ot).getX();
149 }
150 /**
151 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getY()}
152 * on the given element.
153 */
154 public final OMSVGAnimatedLength getY() {
155 return ((SVGFECompositeElement)ot).getY();
156 }
157 /**
158 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getWidth()}
159 * on the given element.
160 */
161 public final OMSVGAnimatedLength getWidth() {
162 return ((SVGFECompositeElement)ot).getWidth();
163 }
164 /**
165 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getHeight()}
166 * on the given element.
167 */
168 public final OMSVGAnimatedLength getHeight() {
169 return ((SVGFECompositeElement)ot).getHeight();
170 }
171 /**
172 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getResult()}
173 * on the given element.
174 */
175 public final OMSVGAnimatedString getResult() {
176 return ((SVGFECompositeElement)ot).getResult();
177 }
178
179 }