org.apache.batik.dom.svg
Class AbstractSVGMatrix

java.lang.Object
  |
  +--org.apache.batik.dom.svg.AbstractSVGMatrix
All Implemented Interfaces:
SVGMatrix
Direct Known Subclasses:
SVGOMMatrix

public abstract class AbstractSVGMatrix
extends java.lang.Object
implements SVGMatrix

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#getA(float).
 void setB(float b)
          Implements SVGMatrix#getB(float).
 void setC(float c)
          Implements SVGMatrix#getC(float).
 void setD(float d)
          Implements SVGMatrix#getD(float).
 void setE(float e)
          Implements SVGMatrix#getE(float).
 void setF(float f)
          Implements SVGMatrix#getF(float).
 SVGMatrix skewX(float angle)
          Implements SVGMatrix.skewX(float).
 SVGMatrix skewY(float angle)
          Implements SVGMatrix#skewY().
 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().
Specified by:
getA in interface SVGMatrix

setA

public void setA(float a)
          throws DOMException
Implements SVGMatrix#getA(float).
Specified by:
setA in interface SVGMatrix

getB

public float getB()
Implements SVGMatrix.getB().
Specified by:
getB in interface SVGMatrix

setB

public void setB(float b)
          throws DOMException
Implements SVGMatrix#getB(float).
Specified by:
setB in interface SVGMatrix

getC

public float getC()
Implements SVGMatrix.getC().
Specified by:
getC in interface SVGMatrix

setC

public void setC(float c)
          throws DOMException
Implements SVGMatrix#getC(float).
Specified by:
setC in interface SVGMatrix

getD

public float getD()
Implements SVGMatrix.getD().
Specified by:
getD in interface SVGMatrix

setD

public void setD(float d)
          throws DOMException
Implements SVGMatrix#getD(float).
Specified by:
setD in interface SVGMatrix

getE

public float getE()
Implements SVGMatrix.getE().
Specified by:
getE in interface SVGMatrix

setE

public void setE(float e)
          throws DOMException
Implements SVGMatrix#getE(float).
Specified by:
setE in interface SVGMatrix

getF

public float getF()
Implements SVGMatrix.getF().
Specified by:
getF in interface SVGMatrix

setF

public void setF(float f)
          throws DOMException
Implements SVGMatrix#getF(float).
Specified by:
setF in interface SVGMatrix

multiply

public SVGMatrix multiply(SVGMatrix secondMatrix)
Implements SVGMatrix.multiply(SVGMatrix).
Specified by:
multiply in interface SVGMatrix

inverse

public SVGMatrix inverse()
                  throws SVGException
Implements SVGMatrix.inverse().
Specified by:
inverse in interface SVGMatrix

translate

public SVGMatrix translate(float x,
                           float y)
Implements SVGMatrix.translate(float,float).
Specified by:
translate in interface SVGMatrix

scale

public SVGMatrix scale(float scaleFactor)
Implements SVGMatrix.scale(float).
Specified by:
scale in interface SVGMatrix

scaleNonUniform

public SVGMatrix scaleNonUniform(float scaleFactorX,
                                 float scaleFactorY)
Implements SVGMatrix.scaleNonUniform(float,float).
Specified by:
scaleNonUniform in interface SVGMatrix

rotate

public SVGMatrix rotate(float angle)
Implements SVGMatrix.rotate(float).
Specified by:
rotate in interface SVGMatrix

rotateFromVector

public SVGMatrix rotateFromVector(float x,
                                  float y)
                           throws SVGException
Implements SVGMatrix.rotateFromVector(float,float).
Specified by:
rotateFromVector in interface SVGMatrix

flipX

public SVGMatrix flipX()
Implements SVGMatrix.flipX().
Specified by:
flipX in interface SVGMatrix

flipY

public SVGMatrix flipY()
Implements SVGMatrix.flipY().
Specified by:
flipY in interface SVGMatrix

skewX

public SVGMatrix skewX(float angle)
Implements SVGMatrix.skewX(float).
Specified by:
skewX in interface SVGMatrix

skewY

public SVGMatrix skewY(float angle)
Implements SVGMatrix#skewY().
Specified by:
skewY in interface SVGMatrix


Copyright © 2002 Apache Software Foundation. All Rights Reserved.