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 classThis class is used to store onetransformfunction. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSingleTransform(Transform.SingleTransform singleTransform) Adds aTransform.SingleTransformin a list of single transforms to process later.static AffineTransformgetAffineTransform(Transform t, float width, float height) Converts theTransforminstance, i.e.private List<Transform.SingleTransform>
-
Field Details
-
multipleTransform
-
-
Constructor Details
-
Transform
public Transform(int length) Creates a newTransforminstance.- Parameters:
length- the amount ofTransform.SingleTransforminstances that thisTransforminstant shall contain and be able to process
-
-
Method Details
-
addSingleTransform
Adds aTransform.SingleTransformin a list of single transforms to process later.- Parameters:
singleTransform- aTransform.SingleTransforminstance
-
getMultipleTransform
-
getAffineTransform
Converts theTransforminstance, i.e. the list ofTransform.SingleTransforminstances, to the equivalentAffineTransforminstance relatively to the available area, including resolving of percent values to point values.- Parameters:
t- aTransforminstance 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
-