org.apache.batik.dom.svg
Class AbstractSVGMatrix

java.lang.Object
  extended by org.apache.batik.dom.svg.AbstractSVGMatrix
Direct Known Subclasses:
SVGOMMatrix

public abstract class AbstractSVGMatrix
extends java.lang.Object

This class provides an abstract implementation of the SVGMatrix interface.


Field Summary
protected static java.awt.geom.AffineTransform FLIP_X_TRANSFORM
          The transform used to implement flipX.
protected static java.awt.geom.AffineTransform FLIP_Y_TRANSFORM
          The transform used to implement flipX.
 
Constructor Summary
AbstractSVGMatrix()
           
 
Method Summary
 SVGMatrix flipX()
          Implements SVGMatrix#flipX().
 SVGMatrix flipY()
          Implements SVGMatrix#flipY().
 float getA()
          Implements SVGMatrix#getA().
protected abstract  java.awt.geom.AffineTransform getAffineTransform()
          Returns the associated AffineTransform.
 float getB()
          Implements SVGMatrix#getB().
 float getC()
          Implements SVGMatrix#getC().
 float getD()
          Implements SVGMatrix#getD().
 float getE()
          Implements SVGMatrix#getE().
 float getF()
          Implements SVGMatrix#getF().
 SVGMatrix inverse()
          Implements SVGMatrix#inverse().
 SVGMatrix multiply(SVGMatrix secondMatrix)
          Implements SVGMatrix#multiply(SVGMatrix).
 SVGMatrix rotate(float angle)
          Implements SVGMatrix#rotate(float).
 SVGMatrix rotateFromVector(float x, float y)
          Implements SVGMatrix#rotateFromVector(float,float).
 SVGMatrix scale(float scaleFactor)
          Implements SVGMatrix#scale(float).
 SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY)
          Implements SVGMatrix#scaleNonUniform(float,float).
 void setA(float a)
          Implements SVGMatrix#setA(float).
 void setB(float b)
          Implements SVGMatrix#setB(float).
 void setC(float c)
          Implements SVGMatrix#setC(float).
 void setD(float d)
          Implements SVGMatrix#setD(float).
 void setE(float e)
          Implements SVGMatrix#setE(float).
 void setF(float f)
          Implements SVGMatrix#setF(float).
 SVGMatrix skewX(float angleDeg)
          Implements SVGMatrix#skewX(float).
 SVGMatrix skewY(float angleDeg)
          Implements SVGMatrix#skewY(float).
 SVGMatrix translate(float x, float y)
          Implements SVGMatrix#translate(float,float).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLIP_X_TRANSFORM

protected static final java.awt.geom.AffineTransform FLIP_X_TRANSFORM
The transform used to implement flipX.


FLIP_Y_TRANSFORM

protected static final java.awt.geom.AffineTransform FLIP_Y_TRANSFORM
The transform used to implement flipX.

Constructor Detail

AbstractSVGMatrix

public AbstractSVGMatrix()
Method Detail

getAffineTransform

protected abstract java.awt.geom.AffineTransform getAffineTransform()
Returns the associated AffineTransform.


getA

public float getA()
Implements SVGMatrix#getA().


setA

public void setA(float a)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setA(float).

Throws:
org.w3c.dom.DOMException

getB

public float getB()
Implements SVGMatrix#getB().


setB

public void setB(float b)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setB(float).

Throws:
org.w3c.dom.DOMException

getC

public float getC()
Implements SVGMatrix#getC().


setC

public void setC(float c)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setC(float).

Throws:
org.w3c.dom.DOMException

getD

public float getD()
Implements SVGMatrix#getD().


setD

public void setD(float d)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setD(float).

Throws:
org.w3c.dom.DOMException

getE

public float getE()
Implements SVGMatrix#getE().


setE

public void setE(float e)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setE(float).

Throws:
org.w3c.dom.DOMException

getF

public float getF()
Implements SVGMatrix#getF().


setF

public void setF(float f)
          throws org.w3c.dom.DOMException
Implements SVGMatrix#setF(float).

Throws:
org.w3c.dom.DOMException

multiply

public SVGMatrix multiply(SVGMatrix secondMatrix)
Implements SVGMatrix#multiply(SVGMatrix).


inverse

public SVGMatrix inverse()
                  throws SVGException
Implements SVGMatrix#inverse().

Throws:
SVGException

translate

public SVGMatrix translate(float x,
                           float y)
Implements SVGMatrix#translate(float,float).


scale

public SVGMatrix scale(float scaleFactor)
Implements SVGMatrix#scale(float).


scaleNonUniform

public SVGMatrix scaleNonUniform(float scaleFactorX,
                                 float scaleFactorY)
Implements SVGMatrix#scaleNonUniform(float,float).


rotate

public SVGMatrix rotate(float angle)
Implements SVGMatrix#rotate(float).


rotateFromVector

public SVGMatrix rotateFromVector(float x,
                                  float y)
                           throws SVGException
Implements SVGMatrix#rotateFromVector(float,float).

Throws:
SVGException

flipX

public SVGMatrix flipX()
Implements SVGMatrix#flipX().


flipY

public SVGMatrix flipY()
Implements SVGMatrix#flipY().


skewX

public SVGMatrix skewX(float angleDeg)
Implements SVGMatrix#skewX(float).


skewY

public SVGMatrix skewY(float angleDeg)
Implements SVGMatrix#skewY(float).



Copyright ? 2008 Apache Software Foundation. All Rights Reserved.