1 18 package org.apache.batik.dom.svg; 19 20 import java.awt.geom.AffineTransform ; 21 22 import org.w3c.dom.DOMException ; 23 import org.w3c.dom.svg.SVGMatrix; 24 25 34 public class SVGOMTransform extends AbstractSVGTransform { 35 36 37 public SVGOMTransform(){ 38 super(); 39 affineTransform = new AffineTransform (); 40 } 41 42 protected SVGMatrix createMatrix(){ 43 return new AbstractSVGMatrix(){ 44 protected AffineTransform getAffineTransform(){ 45 return SVGOMTransform.this.affineTransform; 46 } 47 48 public void setA(float a) throws DOMException { 49 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 50 super.setA(a); 51 } 52 public void setB(float b) throws DOMException { 53 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 54 super.setB(b); 55 } 56 public void setC(float c) throws DOMException { 57 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 58 super.setC(c); 59 } 60 public void setD(float d) throws DOMException { 61 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 62 super.setD(d); 63 } 64 public void setE(float e) throws DOMException { 65 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 66 super.setE(e); 67 } 68 public void setF(float f) throws DOMException { 69 SVGOMTransform.this.setType(SVG_TRANSFORM_MATRIX); 70 super.setF(f); 71 } 72 }; 73 } 74 } 75 | Popular Tags |