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.SVGFESpecularLightingElement;
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.OMSVGFESpecularLightingElement} interface
41   * corresponds to the <a href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
42   * title='feSpecularLighting element specification'>feSpecularLighting</a>
43   * element.
44   */
45  @TagName("feSpecularLighting")
46  public class OMSVGFESpecularLightingElement extends OMSVGElement implements ISVGFilterPrimitiveStandardAttributes {
47    public OMSVGFESpecularLightingElement() {
48      this((SVGFESpecularLightingElement)DOMHelper.createElementNS(DOMHelper.getCurrentDocument(), SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_FE_SPECULAR_LIGHTING_TAG).cast());
49    }
50  
51    protected OMSVGFESpecularLightingElement(SVGFESpecularLightingElement ot) {
52      super(ot);
53    }
54  
55    // Implementation of the svg::SVGFESpecularLightingElement W3C IDL interface
56    /**
57     * Corresponds to attribute <code>in</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
58     * title='feSpecularLighting element specification'>feSpecularLighting</a>
59     * element.
60     */
61    public final OMSVGAnimatedString getIn1() {
62      return ((SVGFESpecularLightingElement)ot).getIn1();
63    }
64    /**
65     * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFESpecularLightingElement#getSurfaceScale()}
66     * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
67     * title='feSpecularLighting element specification'>feSpecularLighting</a>
68     * element.
69     */
70    public final OMSVGAnimatedNumber getSurfaceScale() {
71      return ((SVGFESpecularLightingElement)ot).getSurfaceScale();
72    }
73    /**
74     * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFESpecularLightingElement#getSpecularConstant()}
75     * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
76     * title='feSpecularLighting element specification'>feSpecularLighting</a>
77     * element.
78     */
79    public final OMSVGAnimatedNumber getSpecularConstant() {
80      return ((SVGFESpecularLightingElement)ot).getSpecularConstant();
81    }
82    /**
83     * Corresponds to attribute {@link org.vectomatic.dom.svg.OMSVGFESpecularLightingElement#getSpecularExponent()}
84     * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
85     * title='feSpecularLighting element specification'>feSpecularLighting</a>
86     * element.
87     */
88    public final OMSVGAnimatedNumber getSpecularExponent() {
89      return ((SVGFESpecularLightingElement)ot).getSpecularExponent();
90    }
91    /**
92     * Corresponds to attribute <code>kernelUnitLength</code> on the given <a
93     * href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
94     * title='feSpecularLighting element specification'>feSpecularLighting</a>
95     * element.
96     */
97    public final OMSVGAnimatedNumber getKernelUnitLengthX() {
98      return ((SVGFESpecularLightingElement)ot).getKernelUnitLengthX();
99    }
100   /**
101    * Corresponds to attribute <code>kernelUnitLength</code> on the given <a
102    * href='http://www.w3.org/TR/SVG11/filters.html#feSpecularLightingElement'
103    * title='feSpecularLighting element specification'>feSpecularLighting</a>
104    * element.
105    */
106   public final OMSVGAnimatedNumber getKernelUnitLengthY() {
107     return ((SVGFESpecularLightingElement)ot).getKernelUnitLengthY();
108   }
109 
110   // Implementation of the svg::SVGFilterPrimitiveStandardAttributes W3C IDL interface
111   /**
112    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getX()}
113    * on the given element.
114    */
115   public final OMSVGAnimatedLength getX() {
116     return ((SVGFESpecularLightingElement)ot).getX();
117   }
118   /**
119    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getY()}
120    * on the given element.
121    */
122   public final OMSVGAnimatedLength getY() {
123     return ((SVGFESpecularLightingElement)ot).getY();
124   }
125   /**
126    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getWidth()}
127    * on the given element.
128    */
129   public final OMSVGAnimatedLength getWidth() {
130     return ((SVGFESpecularLightingElement)ot).getWidth();
131   }
132   /**
133    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getHeight()}
134    * on the given element.
135    */
136   public final OMSVGAnimatedLength getHeight() {
137     return ((SVGFESpecularLightingElement)ot).getHeight();
138   }
139   /**
140    * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getResult()}
141    * on the given element.
142    */
143   public final OMSVGAnimatedString getResult() {
144     return ((SVGFESpecularLightingElement)ot).getResult();
145   }
146 
147 }