View Javadoc

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.SVGFEConvolveMatrixElement;
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.OMSVGFEConvolveMatrixElement} interface
41   * corresponds to the <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
42   * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
43   */
44  @TagName("feConvolveMatrix")
45  public class OMSVGFEConvolveMatrixElement 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_EDGEMODE_UNKNOWN = 0;
52    /**
53     * Corresponds to value <span class="attr-value">'duplicate'</span>.
54     */
55    public static final short SVG_EDGEMODE_DUPLICATE = 1;
56    /**
57     * Corresponds to value <span class="attr-value">'wrap'</span>.
58     */
59    public static final short SVG_EDGEMODE_WRAP = 2;
60    /**
61     * Corresponds to value <span class="attr-value">'none'</span>.
62     */
63    public static final short SVG_EDGEMODE_NONE = 3;
64    public OMSVGFEConvolveMatrixElement() {
65      this((SVGFEConvolveMatrixElement)DOMHelper.createElementNS(DOMHelper.getCurrentDocument(), SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_FE_CONVOLVE_MATRIX_TAG).cast());
66    }
67  
68    protected OMSVGFEConvolveMatrixElement(SVGFEConvolveMatrixElement ot) {
69      super(ot);
70    }
71  
72    // Implementation of the svg::SVGFEConvolveMatrixElement W3C IDL interface
73    /**
74     * Corresponds to attribute <code>in</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
75     * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
76     */
77    public final OMSVGAnimatedString getIn1() {
78      return ((SVGFEConvolveMatrixElement)ot).getIn1();
79    }
80    /**
81     * Corresponds to attribute <code>order</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
82     * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
83     */
84    public final OMSVGAnimatedInteger getOrderX() {
85      return ((SVGFEConvolveMatrixElement)ot).getOrderX();
86    }
87    /**
88     * Corresponds to attribute <code>order</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
89     * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
90     */
91    public final OMSVGAnimatedInteger getOrderY() {
92      return ((SVGFEConvolveMatrixElement)ot).getOrderY();
93    }
94    /**
95     * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getKernelMatrix()}
96     * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
97     * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
98     */
99    public final OMSVGAnimatedNumberList getKernelMatrix() {
100     return ((SVGFEConvolveMatrixElement)ot).getKernelMatrix();
101   }
102   /**
103    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getDivisor()}
104    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
105    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
106    */
107   public final OMSVGAnimatedNumber getDivisor() {
108     return ((SVGFEConvolveMatrixElement)ot).getDivisor();
109   }
110   /**
111    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getBias()}
112    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
113    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
114    */
115   public final OMSVGAnimatedNumber getBias() {
116     return ((SVGFEConvolveMatrixElement)ot).getBias();
117   }
118   /**
119    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getTargetX()}
120    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
121    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
122    */
123   public final OMSVGAnimatedInteger getTargetX() {
124     return ((SVGFEConvolveMatrixElement)ot).getTargetX();
125   }
126   /**
127    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getTargetY()}
128    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
129    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
130    */
131   public final OMSVGAnimatedInteger getTargetY() {
132     return ((SVGFEConvolveMatrixElement)ot).getTargetY();
133   }
134   /**
135    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getEdgeMode()}
136    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
137    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
138    * Takes one of the SVG_EDGEMODE_ constants defined on this interface.
139    */
140   public final OMSVGAnimatedEnumeration getEdgeMode() {
141     return ((SVGFEConvolveMatrixElement)ot).getEdgeMode();
142   }
143   /**
144    * Corresponds to attribute <code>kernelUnitLength</code> on the given <a
145    * href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
146    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
147    */
148   public final OMSVGAnimatedNumber getKernelUnitLengthX() {
149     return ((SVGFEConvolveMatrixElement)ot).getKernelUnitLengthX();
150   }
151   /**
152    * Corresponds to attribute <code>kernelUnitLength</code> on the given <a
153    * href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
154    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
155    */
156   public final OMSVGAnimatedNumber getKernelUnitLengthY() {
157     return ((SVGFEConvolveMatrixElement)ot).getKernelUnitLengthY();
158   }
159   /**
160    * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFEConvolveMatrixElement#getPreserveAlpha()}
161    * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement'
162    * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element.
163    */
164   public final OMSVGAnimatedBoolean getPreserveAlpha() {
165     return ((SVGFEConvolveMatrixElement)ot).getPreserveAlpha();
166   }
167 
168   // Implementation of the svg::SVGFilterPrimitiveStandardAttributes W3C IDL interface
169   /**
170    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getX()}
171    * on the given element.
172    */
173   public final OMSVGAnimatedLength getX() {
174     return ((SVGFEConvolveMatrixElement)ot).getX();
175   }
176   /**
177    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getY()}
178    * on the given element.
179    */
180   public final OMSVGAnimatedLength getY() {
181     return ((SVGFEConvolveMatrixElement)ot).getY();
182   }
183   /**
184    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getWidth()}
185    * on the given element.
186    */
187   public final OMSVGAnimatedLength getWidth() {
188     return ((SVGFEConvolveMatrixElement)ot).getWidth();
189   }
190   /**
191    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getHeight()}
192    * on the given element.
193    */
194   public final OMSVGAnimatedLength getHeight() {
195     return ((SVGFEConvolveMatrixElement)ot).getHeight();
196   }
197   /**
198    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getResult()}
199    * on the given element.
200    */
201   public final OMSVGAnimatedString getResult() {
202     return ((SVGFEConvolveMatrixElement)ot).getResult();
203   }
204 
205 }