Class Transform.SingleTransform

java.lang.Object
com.itextpdf.layout.properties.Transform.SingleTransform
Enclosing class:
Transform

public static class Transform.SingleTransform extends Object
This class is used to store one transform function.
  • Field Details

    • a

      private float a
    • b

      private float b
    • c

      private float c
    • d

      private float d
    • tx

      private UnitValue tx
    • ty

      private UnitValue ty
  • Constructor Details

    • SingleTransform

      public SingleTransform()
      Creates a default Transform.SingleTransform instance equivalent to no transform.
    • SingleTransform

      public SingleTransform(float a, float b, float c, float d, UnitValue tx, UnitValue ty)
      Creates a Transform.SingleTransform instance.
      Parameters:
      a - horizontal scaling
      b - vertical skewing
      c - horizontal skewing
      d - vertical scaling
      tx - horizontal translation
      ty - vertical translation
  • Method Details

    • getFloats

      public float[] getFloats()
      Gets an array of values corresponding to transformation, i.e. scaling and skewing.
      Returns:
      an array of floats
    • getUnitValues

      public UnitValue[] getUnitValues()
      Gets an array of values corresponding to translation.
      Returns:
      an array of UnitValue-s