Package com.itextpdf.layout.properties
Class Transform
java.lang.Object
com.itextpdf.layout.properties.Transform
This class is used to store and process multiple
transform
css property before drawing.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This class is used to store onetransform
function. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSingleTransform
(Transform.SingleTransform singleTransform) Adds aTransform.SingleTransform
in a list of single transforms to process later.static AffineTransform
getAffineTransform
(Transform t, float width, float height) Converts theTransform
instance, i.e.
-
Constructor Details
-
Transform
public Transform(int length) Creates a newTransform
instance.- Parameters:
-
length
- the amount ofTransform.SingleTransform
instances that thisTransform
instant shall contain and be able to process
-
-
Method Details
-
addSingleTransform
Adds aTransform.SingleTransform
in a list of single transforms to process later.- Parameters:
-
singleTransform
- aTransform.SingleTransform
instance
-
getAffineTransform
Converts theTransform
instance, i.e. the list ofTransform.SingleTransform
instances, to the equivalentAffineTransform
instance relatively to the available area, including resolving of percent values to point values.- Parameters:
-
t
- aTransform
instance to convert -
width
- the width of available area, the point value of which is equivalent to 100% for percentage resolving -
height
- the height of available area, the point value of which is equivalent to 100% for percentage resolving - Returns:
-
resulting affine transformation instance, accumulated from
Transform
-