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 process
public void addSingleTransform(Transform.SingleTransform singleTransform)
Transform.SingleTransform in a list of single transforms to process later.
singleTransform - a Transform.SingleTransform instance
public 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 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
Copyright © 1998–2019 iText Group NV. All rights reserved.