Package org.apache.batik.dom.svg
Class AbstractSVGMatrix
java.lang.Object
org.apache.batik.dom.svg.AbstractSVGMatrix
- All Implemented Interfaces:
org.w3c.dom.svg.SVGMatrix
- Direct Known Subclasses:
SVGOMMatrix
This class provides an abstract implementation of the
SVGMatrix
interface.- Version:
- $Id: AbstractSVGMatrix.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final AffineTransform
The transform used to implement flipX.protected static final AffineTransform
The transform used to implement flipX. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.svg.SVGMatrix
flipX()
ImplementsSVGMatrix.flipX()
.org.w3c.dom.svg.SVGMatrix
flipY()
ImplementsSVGMatrix.flipY()
.float
getA()
ImplementsSVGMatrix.getA()
.protected abstract AffineTransform
Returns the associated AffineTransform.float
getB()
ImplementsSVGMatrix.getB()
.float
getC()
ImplementsSVGMatrix.getC()
.float
getD()
ImplementsSVGMatrix.getD()
.float
getE()
ImplementsSVGMatrix.getE()
.float
getF()
ImplementsSVGMatrix.getF()
.org.w3c.dom.svg.SVGMatrix
inverse()
ImplementsSVGMatrix.inverse()
.org.w3c.dom.svg.SVGMatrix
multiply
(org.w3c.dom.svg.SVGMatrix secondMatrix) ImplementsSVGMatrix.multiply(SVGMatrix)
.org.w3c.dom.svg.SVGMatrix
rotate
(float angle) ImplementsSVGMatrix.rotate(float)
.org.w3c.dom.svg.SVGMatrix
rotateFromVector
(float x, float y) ImplementsSVGMatrix.rotateFromVector(float,float)
.org.w3c.dom.svg.SVGMatrix
scale
(float scaleFactor) ImplementsSVGMatrix.scale(float)
.org.w3c.dom.svg.SVGMatrix
scaleNonUniform
(float scaleFactorX, float scaleFactorY) ImplementsSVGMatrix.scaleNonUniform(float,float)
.void
setA
(float a) ImplementsSVGMatrix.setA(float)
.void
setB
(float b) ImplementsSVGMatrix.setB(float)
.void
setC
(float c) ImplementsSVGMatrix.setC(float)
.void
setD
(float d) ImplementsSVGMatrix.setD(float)
.void
setE
(float e) ImplementsSVGMatrix.setE(float)
.void
setF
(float f) ImplementsSVGMatrix.setF(float)
.org.w3c.dom.svg.SVGMatrix
skewX
(float angleDeg) ImplementsSVGMatrix.skewX(float)
.org.w3c.dom.svg.SVGMatrix
skewY
(float angleDeg) ImplementsSVGMatrix.skewY(float)
.org.w3c.dom.svg.SVGMatrix
translate
(float x, float y) ImplementsSVGMatrix.translate(float,float)
.
-
Field Details
-
FLIP_X_TRANSFORM
The transform used to implement flipX. -
FLIP_Y_TRANSFORM
The transform used to implement flipX.
-
-
Constructor Details
-
AbstractSVGMatrix
public AbstractSVGMatrix()
-
-
Method Details
-
getAffineTransform
Returns the associated AffineTransform. -
getA
public float getA()ImplementsSVGMatrix.getA()
.- Specified by:
getA
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setA
ImplementsSVGMatrix.setA(float)
.- Specified by:
setA
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
getB
public float getB()ImplementsSVGMatrix.getB()
.- Specified by:
getB
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setB
ImplementsSVGMatrix.setB(float)
.- Specified by:
setB
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
getC
public float getC()ImplementsSVGMatrix.getC()
.- Specified by:
getC
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setC
ImplementsSVGMatrix.setC(float)
.- Specified by:
setC
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
getD
public float getD()ImplementsSVGMatrix.getD()
.- Specified by:
getD
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setD
ImplementsSVGMatrix.setD(float)
.- Specified by:
setD
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
getE
public float getE()ImplementsSVGMatrix.getE()
.- Specified by:
getE
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setE
ImplementsSVGMatrix.setE(float)
.- Specified by:
setE
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
getF
public float getF()ImplementsSVGMatrix.getF()
.- Specified by:
getF
in interfaceorg.w3c.dom.svg.SVGMatrix
-
setF
ImplementsSVGMatrix.setF(float)
.- Specified by:
setF
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
DOMException
-
multiply
public org.w3c.dom.svg.SVGMatrix multiply(org.w3c.dom.svg.SVGMatrix secondMatrix) ImplementsSVGMatrix.multiply(SVGMatrix)
.- Specified by:
multiply
in interfaceorg.w3c.dom.svg.SVGMatrix
-
inverse
public org.w3c.dom.svg.SVGMatrix inverse() throws org.w3c.dom.svg.SVGExceptionImplementsSVGMatrix.inverse()
.- Specified by:
inverse
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
org.w3c.dom.svg.SVGException
-
translate
public org.w3c.dom.svg.SVGMatrix translate(float x, float y) ImplementsSVGMatrix.translate(float,float)
.- Specified by:
translate
in interfaceorg.w3c.dom.svg.SVGMatrix
-
scale
public org.w3c.dom.svg.SVGMatrix scale(float scaleFactor) ImplementsSVGMatrix.scale(float)
.- Specified by:
scale
in interfaceorg.w3c.dom.svg.SVGMatrix
-
scaleNonUniform
public org.w3c.dom.svg.SVGMatrix scaleNonUniform(float scaleFactorX, float scaleFactorY) ImplementsSVGMatrix.scaleNonUniform(float,float)
.- Specified by:
scaleNonUniform
in interfaceorg.w3c.dom.svg.SVGMatrix
-
rotate
public org.w3c.dom.svg.SVGMatrix rotate(float angle) ImplementsSVGMatrix.rotate(float)
.- Specified by:
rotate
in interfaceorg.w3c.dom.svg.SVGMatrix
-
rotateFromVector
public org.w3c.dom.svg.SVGMatrix rotateFromVector(float x, float y) throws org.w3c.dom.svg.SVGException ImplementsSVGMatrix.rotateFromVector(float,float)
.- Specified by:
rotateFromVector
in interfaceorg.w3c.dom.svg.SVGMatrix
- Throws:
org.w3c.dom.svg.SVGException
-
flipX
public org.w3c.dom.svg.SVGMatrix flipX()ImplementsSVGMatrix.flipX()
.- Specified by:
flipX
in interfaceorg.w3c.dom.svg.SVGMatrix
-
flipY
public org.w3c.dom.svg.SVGMatrix flipY()ImplementsSVGMatrix.flipY()
.- Specified by:
flipY
in interfaceorg.w3c.dom.svg.SVGMatrix
-
skewX
public org.w3c.dom.svg.SVGMatrix skewX(float angleDeg) ImplementsSVGMatrix.skewX(float)
.- Specified by:
skewX
in interfaceorg.w3c.dom.svg.SVGMatrix
-
skewY
public org.w3c.dom.svg.SVGMatrix skewY(float angleDeg) ImplementsSVGMatrix.skewY(float)
.- Specified by:
skewY
in interfaceorg.w3c.dom.svg.SVGMatrix
-