Package org.apache.fop.render.svg
Class SVGUtil
java.lang.Object
org.apache.fop.render.svg.SVGUtil
This class provides utility methods for generating SVG.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatAffineTransformMptToPt
(AffineTransform transform) Formats a transformation matrix in millipoints with values as points.static String
formatAffineTransformsMptToPt
(AffineTransform[] transforms) Formats an array of transformation matrices in millipoints with values as points.static String
formatMptArrayToPt
(int[] lengths) Formats an array of lengths in millipoints as point values.static String
formatMptToPt
(int mpt) Formats a length in millipoints as a point value.
-
Constructor Details
-
SVGUtil
private SVGUtil()
-
-
Method Details
-
formatMptToPt
Formats a length in millipoints as a point value.- Parameters:
mpt
- the length in millipoints- Returns:
- the formatted value in points
-
formatMptArrayToPt
Formats an array of lengths in millipoints as point values.- Parameters:
lengths
- the lengths in millipoints- Returns:
- the formatted array in points
-
formatAffineTransformMptToPt
Formats a transformation matrix in millipoints with values as points.- Parameters:
transform
- the transformation matrix in millipoints- Returns:
- the formatted matrix in points
-
formatAffineTransformsMptToPt
Formats an array of transformation matrices in millipoints with values as points.- Parameters:
transforms
- the transformation matrices in millipoints- Returns:
- the formatted matrices in points
-