public class Transform extends Object
transform css property before drawing.| Modifier and Type | Class and Description |
|---|---|
static class |
Transform.SingleTransform
This class is used to store one
transform function. |
| Constructor and Description |
|---|
Transform(int length)
Creates a new
Transform instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addSingleTransform(Transform.SingleTransform singleTransform)
Adds a
Transform.SingleTransform in a list of single transforms to process later. |
static AffineTransform |
getAffineTransform(Transform t,
float width,
float height)
Converts the
Transform instance, i.e. |
public Transform(int length)
Transform instance.length - the amount of Transform.SingleTransform instances that this Transform instant shall contain and be able to processpublic void addSingleTransform(Transform.SingleTransform singleTransform)
Transform.SingleTransform in a list of single transforms to process later.singleTransform - a Transform.SingleTransform instancepublic static AffineTransform getAffineTransform(Transform t, float width, float height)
Transform instance, i.e. the list of Transform.SingleTransform instances,
to the equivalent AffineTransform instance relatively to the available area,
including resolving of percent values to point values.t - a Transform 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 resolvingTransformCopyright © 1998–2020 iText Group NV. All rights reserved.