Home » pdfbox-1.1.0-src » org.apache.pdfbox.util » [javadoc | source]
org.apache.pdfbox.util
public class: Matrix [javadoc | source]
java.lang.Object
   org.apache.pdfbox.util.Matrix

All Implemented Interfaces:
    Cloneable

This class will be used for matrix manipulation.
Constructor:
 public Matrix() 
Method from org.apache.pdfbox.util.Matrix Summary:
clone,   copy,   createAffineTransform,   extractScaling,   extractTranslating,   getScaleInstance,   getTranslatingInstance,   getValue,   getValues,   getValuesAsDouble,   getXPosition,   getXScale,   getYPosition,   getYScale,   multiply,   setFromAffineTransform,   setValue,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.util.Matrix Detail:
 public Object clone() 
    Clones this object.
 public Matrix copy() 
    This will copy the text matrix data.
 public AffineTransform createAffineTransform() 
    Create an affine transform from this matrix's values.
 public Matrix extractScaling() 
    Create a new matrix with just the scaling operators.
 public Matrix extractTranslating() 
    Create a new matrix with just the translating operators.
 public static Matrix getScaleInstance(float x,
    float y) 
    Convenience method to create a scaled instance.
 public static Matrix getTranslatingInstance(float x,
    float y) 
    Convenience method to create a translating instance.
 public float getValue(int row,
    int column) 
    This will get a matrix value at some point.
 public float[][] getValues() 
    Return a single dimension array of all values in the matrix.
 public double[][] getValuesAsDouble() 
    Return a single dimension array of all values in the matrix.
 public float getXPosition() 
    Get the x position in the matrix.
 public float getXScale() 
    Get the xscaling factor of this matrix.
 public float getYPosition() 
    Get the y position.
 public float getYScale() 
    Get the y scaling factor of this matrix.
 public Matrix multiply(Matrix b) 
    This will take the current matrix and multipy it with a matrix that is passed in.
 public  void setFromAffineTransform(AffineTransform af) 
    Set the values of the matrix from the AffineTransform.
 public  void setValue(int row,
    int column,
    float value) 
    This will set a value at a position.
 public String toString() 
    This will return a string representation of the matrix.