Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CE7D200B8F for ; Fri, 30 Sep 2016 21:34:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B74E160AD9; Fri, 30 Sep 2016 19:34:26 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7090B160AB4 for ; Fri, 30 Sep 2016 21:34:25 +0200 (CEST) Received: (qmail 67418 invoked by uid 500); 30 Sep 2016 19:34:24 -0000 Mailing-List: contact commits-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list commits@pdfbox.apache.org Received: (qmail 67409 invoked by uid 99); 30 Sep 2016 19:34:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2016 19:34:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 27764C0DCC for ; Fri, 30 Sep 2016 19:34:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id fy9Aga-DCia5 for ; Fri, 30 Sep 2016 19:34:23 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTP id 85BE65F479 for ; Fri, 30 Sep 2016 19:34:22 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AEED1E0606 for ; Fri, 30 Sep 2016 19:34:21 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id AC6413A031D for ; Fri, 30 Sep 2016 19:34:21 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1762952 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java Date: Fri, 30 Sep 2016 19:34:21 -0000 To: commits@pdfbox.apache.org From: tilman@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160930193421.AC6413A031D@svn01-us-west.apache.org> archived-at: Fri, 30 Sep 2016 19:34:26 -0000 Author: tilman Date: Fri Sep 30 19:34:21 2016 New Revision: 1762952 URL: http://svn.apache.org/viewvc?rev=1762952&view=rev Log: PDFBOX-2852: improve javadoc Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java?rev=1762952&r1=1762951&r2=1762952&view=diff ============================================================================== --- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java (original) +++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/Matrix.java Fri Sep 30 19:34:21 2016 @@ -40,7 +40,7 @@ public final class Matrix implements Clo private final float[] single; /** - * Constructor. + * Constructor. This produces an identity matrix. */ public Matrix() { @@ -49,7 +49,9 @@ public final class Matrix implements Clo } /** - * Creates a matrix from a 6-element COS array. + * Creates a matrix from a 6-element (a b c d e f) COS array. + * + * @param array */ public Matrix(COSArray array) { @@ -64,7 +66,21 @@ public final class Matrix implements Clo } /** - * Creates a matrix with the given 6 elements. + * Creates a transformation matrix with the given 6 elements. Transformation matrices are + * discussed in 8.3.3, "Common Transformations" and 8.3.4, "Transformation Matrices" of the PDF + * specification. For simple purposes (rotate, scale, translate) it is recommended to use the + * static methods below. + * + * @see Matrix#getRotateInstance(double, float, float) + * @see Matrix#getScaleInstance(float, float) + * @see Matrix#getTranslateInstance(float, float) + * + * @param a the X coordinate scaling element (m00) of the 3x3 matrix + * @param b the Y coordinate shearing element (m10) of the 3x3 matrix + * @param c the X coordinate shearing element (m01) of the 3x3 matrix + * @param d the Y coordinate scaling element (m11) of the 3x3 matrix + * @param e the X coordinate translation element (m02) of the 3x3 matrix + * @param f the Y coordinate translation element (m12) of the 3x3 matrix */ public Matrix(float a, float b, float c, float d, float e, float f) { @@ -80,6 +96,7 @@ public final class Matrix implements Clo /** * Creates a matrix with the same elements as the given AffineTransform. + * @param at */ public Matrix(AffineTransform at) { @@ -578,6 +595,8 @@ public final class Matrix implements Clo /** * Returns the x-scaling element of this matrix. + * + * @see #getScalingFactorX() */ public float getScaleX() { @@ -586,6 +605,8 @@ public final class Matrix implements Clo /** * Returns the y-shear element of this matrix. + * + * @see #getScalingFactorY() */ public float getShearY() {