Class Transform


  • public class Transform
    extends java.lang.Object
    This class is used to store and process multiple transform css property before drawing.
    • Constructor Detail

      • Transform

        public Transform​(int length)
        Creates a new Transform instance.
        Parameters:
        length - the amount of Transform.SingleTransform instances that this Transform instant shall contain and be able to process
    • Method Detail

      • getAffineTransform

        public static AffineTransform getAffineTransform​(Transform t,
                                                         float width,
                                                         float height)
        Converts the 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.
        Parameters:
        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
        Returns:
        resulting affine transformation instance, accumulated from Transform