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.impl; 31 32 import org.vectomatic.dom.svg.OMSVGAnimatedBoolean; 33 import org.vectomatic.dom.svg.OMSVGAnimatedEnumeration; 34 import org.vectomatic.dom.svg.OMSVGAnimatedInteger; 35 import org.vectomatic.dom.svg.OMSVGAnimatedLength; 36 import org.vectomatic.dom.svg.OMSVGAnimatedNumber; 37 import org.vectomatic.dom.svg.OMSVGAnimatedNumberList; 38 import org.vectomatic.dom.svg.OMSVGAnimatedString; 39 40 /** 41 * The {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement} interface 42 * corresponds to the <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 43 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 44 */ 45 public class SVGFEConvolveMatrixElement extends SVGElement { 46 protected SVGFEConvolveMatrixElement() { 47 } 48 49 // Implementation of the svg::SVGFEConvolveMatrixElement W3C IDL interface 50 /** 51 * Corresponds to attribute <code>in</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 52 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 53 */ 54 public final native OMSVGAnimatedString getIn1() /*-{ 55 return this.in1; 56 }-*/; 57 /** 58 * Corresponds to attribute <code>order</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 59 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 60 */ 61 public final native OMSVGAnimatedInteger getOrderX() /*-{ 62 return this.orderX; 63 }-*/; 64 /** 65 * Corresponds to attribute <code>order</code> on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 66 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 67 */ 68 public final native OMSVGAnimatedInteger getOrderY() /*-{ 69 return this.orderY; 70 }-*/; 71 /** 72 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getKernelMatrix()} 73 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 74 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 75 */ 76 public final native OMSVGAnimatedNumberList getKernelMatrix() /*-{ 77 return this.kernelMatrix; 78 }-*/; 79 /** 80 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getDivisor()} 81 * 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 native OMSVGAnimatedNumber getDivisor() /*-{ 85 return this.divisor; 86 }-*/; 87 /** 88 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getBias()} 89 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 90 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 91 */ 92 public final native OMSVGAnimatedNumber getBias() /*-{ 93 return this.bias; 94 }-*/; 95 /** 96 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getTargetX()} 97 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 98 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 99 */ 100 public final native OMSVGAnimatedInteger getTargetX() /*-{ 101 return this.targetX; 102 }-*/; 103 /** 104 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getTargetY()} 105 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 106 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 107 */ 108 public final native OMSVGAnimatedInteger getTargetY() /*-{ 109 return this.targetY; 110 }-*/; 111 /** 112 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getEdgeMode()} 113 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 114 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 115 * Takes one of the SVG_EDGEMODE_ constants defined on this interface. 116 */ 117 public final native OMSVGAnimatedEnumeration getEdgeMode() /*-{ 118 return this.edgeMode; 119 }-*/; 120 /** 121 * Corresponds to attribute <code>kernelUnitLength</code> on the given <a 122 * href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 123 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 124 */ 125 public final native OMSVGAnimatedNumber getKernelUnitLengthX() /*-{ 126 return this.kernelUnitLengthX; 127 }-*/; 128 /** 129 * Corresponds to attribute <code>kernelUnitLength</code> on the given <a 130 * href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 131 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 132 */ 133 public final native OMSVGAnimatedNumber getKernelUnitLengthY() /*-{ 134 return this.kernelUnitLengthY; 135 }-*/; 136 /** 137 * Corresponds to attribute {@link org.vectomatic.dom.svg.impl.SVGFEConvolveMatrixElement#getPreserveAlpha()} 138 * on the given <a href='http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElement' 139 * title='feConvolveMatrix element specification'>feConvolveMatrix</a> element. 140 */ 141 public final native OMSVGAnimatedBoolean getPreserveAlpha() /*-{ 142 return this.preserveAlpha; 143 }-*/; 144 145 // Implementation of the svg::SVGFilterPrimitiveStandardAttributes W3C IDL interface 146 /** 147 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getX()} 148 * on the given element. 149 */ 150 public final native OMSVGAnimatedLength getX() /*-{ 151 return this.x; 152 }-*/; 153 /** 154 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getY()} 155 * on the given element. 156 */ 157 public final native OMSVGAnimatedLength getY() /*-{ 158 return this.y; 159 }-*/; 160 /** 161 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getWidth()} 162 * on the given element. 163 */ 164 public final native OMSVGAnimatedLength getWidth() /*-{ 165 return this.width; 166 }-*/; 167 /** 168 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getHeight()} 169 * on the given element. 170 */ 171 public final native OMSVGAnimatedLength getHeight() /*-{ 172 return this.height; 173 }-*/; 174 /** 175 * Corresponds to attribute {@link org.vectomatic.dom.svg.itf.ISVGFilterPrimitiveStandardAttributes#getResult()} 176 * on the given element. 177 */ 178 public final native OMSVGAnimatedString getResult() /*-{ 179 return this.result; 180 }-*/; 181 182 }