Beispiel #1
0
 /**
  * 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);
 }
Beispiel #2
0
 /**
  * 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);
 }