org.apache.batik.dom.svg

Class AbstractSVGMatrix

public abstract class AbstractSVGMatrix extends Object implements SVGMatrix

This class provides an abstract implementation of the {@link SVGMatrix} interface.
Field Summary
protected static AffineTransformFLIP_X_TRANSFORM
The transform used to implement flipX.
protected static AffineTransformFLIP_Y_TRANSFORM
The transform used to implement flipX.
Method Summary
SVGMatrixflipX()
Implements {@link SVGMatrix#flipX()}.
SVGMatrixflipY()
Implements {@link SVGMatrix#flipY()}.
floatgetA()
Implements {@link SVGMatrix#getA()}.
protected abstract AffineTransformgetAffineTransform()
Returns the associated AffineTransform.
floatgetB()
Implements {@link SVGMatrix#getB()}.
floatgetC()
Implements {@link SVGMatrix#getC()}.
floatgetD()
Implements {@link SVGMatrix#getD()}.
floatgetE()
Implements {@link SVGMatrix#getE()}.
floatgetF()
Implements {@link SVGMatrix#getF()}.
SVGMatrixinverse()
Implements {@link SVGMatrix#inverse()}.
SVGMatrixmultiply(SVGMatrix secondMatrix)
Implements {@link SVGMatrix#multiply(SVGMatrix)}.
SVGMatrixrotate(float angle)
Implements {@link SVGMatrix#rotate(float)}.
SVGMatrixrotateFromVector(float x, float y)
Implements {@link SVGMatrix#rotateFromVector(float,float)}.
SVGMatrixscale(float scaleFactor)
Implements {@link SVGMatrix#scale(float)}.
SVGMatrixscaleNonUniform(float scaleFactorX, float scaleFactorY)
Implements {@link SVGMatrix#scaleNonUniform(float,float)}.
voidsetA(float a)
Implements {@link SVGMatrix#setA(float)}.
voidsetB(float b)
Implements {@link SVGMatrix#setB(float)}.
voidsetC(float c)
Implements {@link SVGMatrix#setC(float)}.
voidsetD(float d)
Implements {@link SVGMatrix#setD(float)}.
voidsetE(float e)
Implements {@link SVGMatrix#setE(float)}.
voidsetF(float f)
Implements {@link SVGMatrix#setF(float)}.
SVGMatrixskewX(float angleDeg)
Implements {@link SVGMatrix#skewX(float)}.
SVGMatrixskewY(float angleDeg)
Implements {@link SVGMatrix#skewY(float)}.
SVGMatrixtranslate(float x, float y)
Implements {@link SVGMatrix#translate(float,float)}.

Field Detail

FLIP_X_TRANSFORM

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

FLIP_Y_TRANSFORM

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

Method Detail

flipX

public SVGMatrix flipX()
Implements {@link SVGMatrix#flipX()}.

flipY

public SVGMatrix flipY()
Implements {@link SVGMatrix#flipY()}.

getA

public float getA()
Implements {@link SVGMatrix#getA()}.

getAffineTransform

protected abstract AffineTransform getAffineTransform()
Returns the associated AffineTransform.

getB

public float getB()
Implements {@link SVGMatrix#getB()}.

getC

public float getC()
Implements {@link SVGMatrix#getC()}.

getD

public float getD()
Implements {@link SVGMatrix#getD()}.

getE

public float getE()
Implements {@link SVGMatrix#getE()}.

getF

public float getF()
Implements {@link SVGMatrix#getF()}.

inverse

public SVGMatrix inverse()
Implements {@link SVGMatrix#inverse()}.

multiply

public SVGMatrix multiply(SVGMatrix secondMatrix)
Implements {@link SVGMatrix#multiply(SVGMatrix)}.

rotate

public SVGMatrix rotate(float angle)
Implements {@link SVGMatrix#rotate(float)}.

rotateFromVector

public SVGMatrix rotateFromVector(float x, float y)
Implements {@link SVGMatrix#rotateFromVector(float,float)}.

scale

public SVGMatrix scale(float scaleFactor)
Implements {@link SVGMatrix#scale(float)}.

scaleNonUniform

public SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY)
Implements {@link SVGMatrix#scaleNonUniform(float,float)}.

setA

public void setA(float a)
Implements {@link SVGMatrix#setA(float)}.

setB

public void setB(float b)
Implements {@link SVGMatrix#setB(float)}.

setC

public void setC(float c)
Implements {@link SVGMatrix#setC(float)}.

setD

public void setD(float d)
Implements {@link SVGMatrix#setD(float)}.

setE

public void setE(float e)
Implements {@link SVGMatrix#setE(float)}.

setF

public void setF(float f)
Implements {@link SVGMatrix#setF(float)}.

skewX

public SVGMatrix skewX(float angleDeg)
Implements {@link SVGMatrix#skewX(float)}.

skewY

public SVGMatrix skewY(float angleDeg)
Implements {@link SVGMatrix#skewY(float)}.

translate

public SVGMatrix translate(float x, float y)
Implements {@link SVGMatrix#translate(float,float)}.
Copyright B) 2007 Apache Software Foundation. All Rights Reserved.