|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.intarsys.pdf.tools.kernel.PDFGeometryTools
public class PDFGeometryTools
Tool class for calculations regarding the PDF geometry.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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.
|
jPod PDF library | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||