Package com.itextpdf.layout.properties
Class Transform.SingleTransform
java.lang.Object
com.itextpdf.layout.properties.Transform.SingleTransform
- Enclosing class:
- Transform
This class is used to store one
transform function.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a defaultTransform.SingleTransforminstance equivalent to no transform.SingleTransform(float a, float b, float c, float d, UnitValue tx, UnitValue ty) Creates aTransform.SingleTransforminstance. -
Method Summary
Modifier and TypeMethodDescriptionfloat[]Gets an array of values corresponding to transformation, i.e.Gets an array of values corresponding to translation.
-
Constructor Details
-
SingleTransform
public SingleTransform()Creates a defaultTransform.SingleTransforminstance equivalent to no transform. -
SingleTransform
Creates aTransform.SingleTransforminstance.- 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
Gets an array of values corresponding to translation.- Returns:
-
an array of
UnitValue-s
-