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
ConstructorDescriptionCreates a defaultTransform.SingleTransform
instance equivalent to no transform.SingleTransform
(float a, float b, float c, float d, UnitValue tx, UnitValue ty) Creates aTransform.SingleTransform
instance. -
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.SingleTransform
instance equivalent to no transform. -
SingleTransform
Creates aTransform.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
Gets an array of values corresponding to translation.- Returns:
-
an array of
UnitValue
-s
-