Class AffineTransformArrayParser
java.lang.Object
org.apache.fop.render.intermediate.AffineTransformArrayParser
- All Implemented Interfaces:
org.apache.batik.parser.TransformListHandler
public class AffineTransformArrayParser
extends Object
implements org.apache.batik.parser.TransformListHandler
This class parses a sequence of transformations into an array of
AffineTransform
instances.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AffineTransform[]Utility method for creating an AffineTransform array.static AffineTransform[]Utility method for creating an AffineTransform.voidReturns the AffineTransform array initialized during the last parsing.voidmatrix(float a, float b, float c, float d, float e, float f) voidrotate(float theta) voidrotate(float theta, float cx, float cy) voidscale(float sx) voidscale(float sx, float sy) voidskewX(float skx) voidskewY(float sky) voidvoidtranslate(float tx) voidtranslate(float tx, float ty)
-
Constructor Details
-
AffineTransformArrayParser
public AffineTransformArrayParser()
-
-
Method Details
-
createAffineTransform
public static AffineTransform[] createAffineTransform(Reader r) throws org.apache.batik.parser.ParseException Utility method for creating an AffineTransform array.- Parameters:
r- The reader used to read the transform specification.- Returns:
- the AffineTransform array
- Throws:
org.apache.batik.parser.ParseException- if there's a parse error
-
createAffineTransform
public static AffineTransform[] createAffineTransform(String s) throws org.apache.batik.parser.ParseException Utility method for creating an AffineTransform.- Parameters:
s- The transform specification.- Returns:
- the AffineTransform array
- Throws:
org.apache.batik.parser.ParseException- if there's a parse error
-
getAffineTransforms
Returns the AffineTransform array initialized during the last parsing.- Returns:
- the array or null if this handler has not been used by a parser.
-
startTransformList
public void startTransformList() throws org.apache.batik.parser.ParseException- Specified by:
startTransformListin interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
matrix
public void matrix(float a, float b, float c, float d, float e, float f) throws org.apache.batik.parser.ParseException - Specified by:
matrixin interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
rotate
public void rotate(float theta) throws org.apache.batik.parser.ParseException - Specified by:
rotatein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
rotate
public void rotate(float theta, float cx, float cy) throws org.apache.batik.parser.ParseException - Specified by:
rotatein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
translate
public void translate(float tx) throws org.apache.batik.parser.ParseException - Specified by:
translatein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
translate
public void translate(float tx, float ty) throws org.apache.batik.parser.ParseException - Specified by:
translatein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
scale
public void scale(float sx) throws org.apache.batik.parser.ParseException - Specified by:
scalein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
scale
public void scale(float sx, float sy) throws org.apache.batik.parser.ParseException - Specified by:
scalein interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
skewX
public void skewX(float skx) throws org.apache.batik.parser.ParseException - Specified by:
skewXin interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
skewY
public void skewY(float sky) throws org.apache.batik.parser.ParseException - Specified by:
skewYin interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-
endTransformList
public void endTransformList() throws org.apache.batik.parser.ParseException- Specified by:
endTransformListin interfaceorg.apache.batik.parser.TransformListHandler- Throws:
org.apache.batik.parser.ParseException
-