intarsys PDF library API

de.intarsys.pdf.tools.kernel
Class PDFGeometryTools

java.lang.Object
  extended by de.intarsys.pdf.tools.kernel.PDFGeometryTools

public class PDFGeometryTools
extends Object

Tool class for calculations regarding the PDF geometry.


Method Summary
static void adjustTransform(AffineTransform transform, int rotate, Rectangle2D rect)
          Given a transformation in user space, apply the necessary transformation steps to move the origin of the coordinate system to the lower left corner of rect after rotating it clockwise by rotate.
static int normalizeRotate(int rotation)
          Normalize the rotation parameter to a positive multiple of 90 between 0 and 270.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

normalizeRotate

public static int normalizeRotate(int rotation)
Normalize the rotation parameter to a positive multiple of 90 between 0 and 270.

Parameters:
rotation -
Returns:
Normalize the rotation parameter to a positive multiple of 90 between 0 and 270.

adjustTransform

public static void adjustTransform(AffineTransform transform,
                                   int rotate,
                                   Rectangle2D rect)
Given a transformation in user space, apply the necessary transformation steps to move the origin of the coordinate system to the lower left corner of rect after rotating it clockwise by rotate.

transform is modified, rect is read only.

Parameters:
transform -
rotate -
rect -

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.