public class AffineTransformArrayParser extends Object implements org.apache.batik.parser.TransformListHandler
AffineTransform
instances.| Constructor and Description |
|---|
AffineTransformArrayParser() |
| Modifier and Type | Method and Description |
|---|---|
static AffineTransform[] |
createAffineTransform(Reader r)
Utility method for creating an AffineTransform array.
|
static AffineTransform[] |
createAffineTransform(String s)
Utility method for creating an AffineTransform.
|
void |
endTransformList() |
AffineTransform[] |
getAffineTransforms()
Returns the AffineTransform array initialized during the last parsing.
|
void |
matrix(float a,
float b,
float c,
float d,
float e,
float f) |
void |
rotate(float theta) |
void |
rotate(float theta,
float cx,
float cy) |
void |
scale(float sx) |
void |
scale(float sx,
float sy) |
void |
skewX(float skx) |
void |
skewY(float sky) |
void |
startTransformList() |
void |
translate(float tx) |
void |
translate(float tx,
float ty) |
public static AffineTransform[] createAffineTransform(Reader r) throws org.apache.batik.parser.ParseException
r - The reader used to read the transform specification.org.apache.batik.parser.ParseException - if there's a parse errorpublic static AffineTransform[] createAffineTransform(String s) throws org.apache.batik.parser.ParseException
s - The transform specification.org.apache.batik.parser.ParseException - if there's a parse errorpublic AffineTransform[] getAffineTransforms()
public void startTransformList()
throws org.apache.batik.parser.ParseException
startTransformList in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void matrix(float a,
float b,
float c,
float d,
float e,
float f)
throws org.apache.batik.parser.ParseException
matrix in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void rotate(float theta)
throws org.apache.batik.parser.ParseException
rotate in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void rotate(float theta,
float cx,
float cy)
throws org.apache.batik.parser.ParseException
rotate in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void translate(float tx)
throws org.apache.batik.parser.ParseException
translate in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void translate(float tx,
float ty)
throws org.apache.batik.parser.ParseException
translate in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void scale(float sx)
throws org.apache.batik.parser.ParseException
scale in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void scale(float sx,
float sy)
throws org.apache.batik.parser.ParseException
scale in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void skewX(float skx)
throws org.apache.batik.parser.ParseException
skewX in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void skewY(float sky)
throws org.apache.batik.parser.ParseException
skewY in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionpublic void endTransformList()
throws org.apache.batik.parser.ParseException
endTransformList in interface org.apache.batik.parser.TransformListHandlerorg.apache.batik.parser.ParseExceptionCopyright © 2023 Apache Software Foundation. All rights reserved.