示例#1
0
文件: SVGUtil.java 项目: chikoski/sqs
 /**
  * Formats a transformation matrix in millipoints with values as points.
  *
  * @param transform the transformation matrix in millipoints
  * @return the formatted matrix in points
  */
 public static String formatAffineTransformMptToPt(AffineTransform transform) {
   AffineTransform scaled = new AffineTransform(transform);
   scaled.setToTranslation(transform.getTranslateX() / 1000, transform.getTranslateY() / 1000);
   return IFUtil.toString(scaled);
 }
示例#2
0
文件: SVGUtil.java 项目: chikoski/sqs
 /**
  * Formats an array of lengths in millipoints as point values.
  *
  * @param lengths the lengths in millipoints
  * @return the formatted array in points
  */
 public static String formatMptArrayToPt(int[] lengths) {
   return IFUtil.toString(lengths);
 }