public class PDFGeometryTools extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
adjustTransform(AffineTransform transform,
int rotate,
Rectangle2D rect)
Given a device space transformation, 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 void |
adjustTransform(AffineTransform transform,
PDPage page)
Given a device space transformation, apply the necessary transformation
steps to move the origin of the coordinate system to the lower left
corner of
page. |
static int |
normalizeRotate(int rotation)
Normalize the rotation parameter to a positive multiple of 90 between 0
and 270.
|
static CDSRectangle |
transform(CDSMatrix matrix,
CDSRectangle rect)
Create the transformation of
rect and return it. |
public static void adjustTransform(AffineTransform transform, int rotate, Rectangle2D rect)
rect after rotating it clockwise by
rotate.
transform is modified
transform - rotate - rect - public static void adjustTransform(AffineTransform transform, PDPage page)
page.
transform is modified
transform - page - public static int normalizeRotate(int rotation)
rotation - public static CDSRectangle transform(CDSMatrix matrix, CDSRectangle rect)
rect and return it.matrix - The transformation to apply.rect - The rectangle to be transformed. This is not changed.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.