Generated by
JDiff

com.itextpdf.kernel.geom Documentation Differences

This file contains all the changes in documentation in the package com.itextpdf.kernel.geom as colored differences. Deletions are shown like this , and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a tag will cause all subsequent paragraphs to be displayed differently.

Class AffineTransform

The AffineTransform class represents an affine transformation, which is a combination of linear transformations such as translation, scaling, rotation, and shearing which allows preservation of the straightness of lines.

Note: this class is a special case of a 3 by 3 Matrix.

Class AffineTransform, constructor AffineTransform(double, double, double, double, double, double)

Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param m00 The value of the first row and first column of the matrix. @param m10 The value of the second row and first column of the matrix. @param m01 The value of the first row and second column of the matrix. @param m11 The value of the second row and second column of the matrix. @param m02 The value of the first row and third column of the matrix. @param m12 The value of the second row and third column of the matrix.
Class AffineTransform, constructor AffineTransform(double[])

Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param matrix The array of values to be used for the transformation matrix.
Class AffineTransform, constructor AffineTransform(float[])

Create an AffineTransform instance with the values provided. The default type is for the transformation is {@code TYPE_UNKNOWN} Detailed explanation of parameters can be found in Matrix documentation. @param matrix The array of values to be used for the transformation matrix.

Class Matrix

Keeps all the values of a 3 by 3 matrix and allows you to to do some math with matrices.

Transformation matrix in PDF is a special case of a 3 by 3 matrix
{@code [a b 0]}
{@code [c d 0]}
{@code [e f 1]}

In its most general form, this matrix is specified by six numbers, usually in the form of an array containing six elements {@code [a b c d e f]}. It can represent any linear transformation from one coordinate system to another. Here the most common transformations:

  • Translations shall be specified as {@code [1 0 0 1 Tx Ty]}, where {@code Tx} and {@code Ty} shall be the distances to translate the origin of the coordinate system in the horizontal and vertical dimensions, respectively.
  • Scaling shall be obtained by {@code [Sx 0 0 Sy 0 0]}. This scales the coordinates so that 1 unit in the horizontal and vertical dimensions of the new coordinate system is the same size as {@code Sx} and {@code Sy} units, respectively, in the previous coordinate system.
  • Rotations shall be produced by {@code [Rc Rs -Rs Rc 0 0]}, where {@code Rc = cos(q)} and {@code Rs = sin(q)} which has the effect of rotating the coordinate system axes by an angle {@code q} counterclockwise.
  • Skew shall be specified by {@code [1 Wx Wy 1 0 0]}, where {@code Wx = tan(a)} and {@code Wy = tan(b)} which skews the x-axis by an angle {@code a} and the y-axis by an angle {@code b}.

For more information see PDF Specification ISO 32000-1 section 8.3.

Class Matrix, constructor Matrix()

constructs Constructs a new Matrix with identity.
Class Matrix, Matrix multiply(Matrix)

multiplies this matrix by 'b' and returns the result. See http://en.wikipedia.org/wiki/ Matrix_ multiplication multiplication @param by The matrix to multiply by @return the resulting matrix
Class Matrix, int I11

the The row=1, col=1 position ('a') in the matrix.
Class Matrix, int I12

the The row=1, col=2 position ('b') in the matrix.
Class Matrix, int I13

the The row=1, col=3 position (always 0 for 2-D 2D) in the matrix.
Class Matrix, int I21

the The row=2, col=1 position ('c') in the matrix.
Class Matrix, int I22

the The row=2, col=2 position ('d') in the matrix.
Class Matrix, int I23

the The row=2, col=3 position (always 0 for 2-D 2D) in the matrix.
Class Matrix, int I31

the The row=3, col=1 ('e', or X translation) position in the matrix.
Class Matrix, int I32

the The row=3, col=2 ('f', or Y translation) position in the matrix.
Class Matrix, int I33

the The row=3, col=3 position (always 1 for 2-D 2D) in the matrix.

Class Rectangle, Rectangle getRectangleOnRotatedPage(Rectangle, PdfPage)

Gets the Transforms a rectangle defined in the space of unrotated origin (bottom-left) into coordinates as it looks would appear on the a passed as parameter rotated page page. and

returns the rectangle in This method is useful coordinates when adding annotations, form fields, or relevant other elements to the true a PDF page origin that has a rotation. This rectangle can be used The iText coordinate system always to uses the add bottom-left annotations corner as origin, fields regardless of page rotation. This method compensates for that rotation, and other objects returning a rectangle to positioned correctly in the rotated true page coordinate space. @param rect the rectangle as it defined in looks page-space on coordinates relative to the rotated page unrotated origin. @param page the page PdfPage on to which one the rectangle will be added. want The rotation of this page is used to process transform the rectangle coordinates. @return the newly a created new rectangle Rectangle with translated corrected coordinates suitable for placement in the rotated coordinate space of the page.