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
Nested ClassesModifier and TypeClassDescriptionstatic class
This class is used to store onetransform
function. -
Field Summary
Fields -
Constructor Summary
Constructors -
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.private List
<Transform.SingleTransform>
-
Field Details
-
multipleTransform
-
-
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
-
getMultipleTransform
-
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 convertwidth
- the width of available area, the point value of which is equivalent to 100% for percentage resolvingheight
- 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
-