Package org.apache.batik.parser
Class AWTTransformProducer
java.lang.Object
org.apache.batik.parser.AWTTransformProducer
- All Implemented Interfaces:
TransformListHandler
- Direct Known Subclasses:
ViewBox.ViewHandler
This class provides an implementation of the PathHandler that initializes
an AffineTransform from the value of a 'transform' attribute.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AffineTransform
The value of the current affine transform. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AffineTransform
Utility method for creating an AffineTransform.static AffineTransform
Utility method for creating an AffineTransform.void
ImplementsTransformListHandler.endTransformList()
.Returns the AffineTransform object initialized during the last parsing.void
matrix
(float a, float b, float c, float d, float e, float f) void
rotate
(float theta) ImplementsTransformListHandler.rotate(float)
.void
rotate
(float theta, float cx, float cy) ImplementsTransformListHandler.rotate(float,float,float)
.void
scale
(float sx) ImplementsTransformListHandler.scale(float)
.void
scale
(float sx, float sy) ImplementsTransformListHandler.scale(float,float)
.void
skewX
(float skx) ImplementsTransformListHandler.skewX(float)
.void
skewY
(float sky) ImplementsTransformListHandler.skewY(float)
.void
ImplementsTransformListHandler.startTransformList()
.void
translate
(float tx) ImplementsTransformListHandler.translate(float)
.void
translate
(float tx, float ty) ImplementsTransformListHandler.translate(float,float)
.
-
Field Details
-
affineTransform
The value of the current affine transform.
-
-
Constructor Details
-
AWTTransformProducer
public AWTTransformProducer()
-
-
Method Details
-
createAffineTransform
Utility method for creating an AffineTransform.- Parameters:
r
- The reader used to read the transform specification.- Throws:
ParseException
-
createAffineTransform
Utility method for creating an AffineTransform.- Parameters:
s
- The transform specification.- Throws:
ParseException
-
getAffineTransform
Returns the AffineTransform object initialized during the last parsing.- Returns:
- the transform or null if this handler has not been used by a parser.
-
startTransformList
ImplementsTransformListHandler.startTransformList()
.- Specified by:
startTransformList
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
matrix
- Specified by:
matrix
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
rotate
ImplementsTransformListHandler.rotate(float)
.- Specified by:
rotate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
rotate
ImplementsTransformListHandler.rotate(float,float,float)
.- Specified by:
rotate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
translate
ImplementsTransformListHandler.translate(float)
.- Specified by:
translate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
translate
ImplementsTransformListHandler.translate(float,float)
.- Specified by:
translate
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
scale
ImplementsTransformListHandler.scale(float)
.- Specified by:
scale
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
scale
ImplementsTransformListHandler.scale(float,float)
.- Specified by:
scale
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
skewX
ImplementsTransformListHandler.skewX(float)
.- Specified by:
skewX
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
skewY
ImplementsTransformListHandler.skewY(float)
.- Specified by:
skewY
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-
endTransformList
ImplementsTransformListHandler.endTransformList()
.- Specified by:
endTransformList
in interfaceTransformListHandler
- Throws:
ParseException
- if an error occured while processing the transform
-