Class SVGUtil

java.lang.Object
org.apache.fop.render.svg.SVGUtil

public final class SVGUtil extends Object
This class provides utility methods for generating SVG.
  • Constructor Details

    • SVGUtil

      private SVGUtil()
  • Method Details

    • formatMptToPt

      public static String formatMptToPt(int mpt)
      Formats a length in millipoints as a point value.
      Parameters:
      mpt - the length in millipoints
      Returns:
      the formatted value in points
    • formatMptArrayToPt

      public static String formatMptArrayToPt(int[] lengths)
      Formats an array of lengths in millipoints as point values.
      Parameters:
      lengths - the lengths in millipoints
      Returns:
      the formatted array in points
    • formatAffineTransformMptToPt

      public static String formatAffineTransformMptToPt(AffineTransform transform)
      Formats a transformation matrix in millipoints with values as points.
      Parameters:
      transform - the transformation matrix in millipoints
      Returns:
      the formatted matrix in points
    • formatAffineTransformsMptToPt

      public static String formatAffineTransformsMptToPt(AffineTransform[] transforms)
      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