Java org.apache.pdfbox.util Matrix fields, constructors, methods, implement or subclass

Example usage for Java org.apache.pdfbox.util Matrix fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.pdfbox.util Matrix.

The text is from its open source code.

Constructor

Matrix()
Constructor.
Matrix(float a, float b, float c, float d, float e, float f)
Creates a transformation matrix with the given 6 elements.
Matrix(COSArray array)
Creates a matrix from a 6-element (a b c d e f) COS array.
Matrix(AffineTransform at)
Creates a matrix with the same elements as the given AffineTransform.

Method

Matrixclone()
Clones this object.
voidconcatenate(Matrix matrix)
Concatenates (premultiplies) the given matrix to this matrix.
Matrixconcatenate(Matrix a, Matrix b)
Produces a copy of the first matrix, with the second matrix concatenated.
AffineTransformcreateAffineTransform()
Create an affine transform from this matrix's values.
MatrixgetRotateInstance(double theta, float tx, float ty)
Convenience method to create a rotated instance.
MatrixgetScaleInstance(float sx, float sy)
Convenience method to create a scaled instance.
floatgetScaleX()
Returns the x-scaling element of this matrix.
floatgetScaleY()
Returns the y-scaling element of this matrix.
floatgetScalingFactorX()
Returns the x-scaling factor of this matrix.
floatgetScalingFactorY()
Returns the y-scaling factor of this matrix.
MatrixgetTranslateInstance(float tx, float ty)
Convenience method to create a translating instance.
floatgetTranslateX()
Returns the x-translation element of this matrix.
floatgetTranslateY()
Returns the y-translation element of this matrix.
floatgetValue(int row, int column)
This will get a matrix value at some point.
Matrixmultiply(Matrix b)
This will take the current matrix and multiply it with a matrix that is passed in.
voidrotate(double theta)
Rotares this matrix by the given factors.
voidscale(float sx, float sy)
Scales this matrix by the given factors.
voidsetValue(int row, int column, float value)
This will set a value at a position.
voidtranslate(float tx, float ty)
Translates this matrix by the given amount.