Class TransformationOperations


  • public class TransformationOperations
    extends Object
    • Method Detail

      • getFromAffine

        public static TransformationOperations getFromAffine​(javafx.scene.transform.Affine affine)
        Creates a TransformationOperations object from a JavaFX affine transformation.
        Parameters:
        affine - The Affine object for which to calculate the transformation operations.
        Returns:
        A TransformationOperations object which contains the translation, scale, rotation, and skew of the given transformation matrix.
      • getFromSvg

        public static TransformationOperations getFromSvg​(org.w3c.dom.svg.SVGMatrix matrix)
        Creates a TransformationOperations object from an SVG transformation matrix.
        Parameters:
        matrix - The SVGMatrix object for which to calculate the transformation operations.
        Returns:
        A TransformationOperations object which contains the translation, scale, rotation, and skew of the given transformation matrix.
      • getTranslation

        public javafx.geometry.Point2D getTranslation()
        Returns:
        The translation part of the transformation matrix.
      • getSkew

        public javafx.geometry.Point2D getSkew()
        Returns:
        The skew part (in X- and Y-direction) of the transformation matrix.
      • getScale

        public javafx.geometry.Point2D getScale()
        Returns:
        The scale part (in x- and y-direction) of the transformation matrix.
      • getRotation

        public double getRotation()
        Returns:
        The rotation part (in degrees) of the transformation matrix.
      • hasRotation

        public boolean hasRotation()
        Returns:
        true if the transformation matrix contains a rotation, false otherwise.
      • hasScale

        public boolean hasScale()
        Returns:
        true if the transformation matrix contains a scaling, false otherwise.
      • hasSkew

        public boolean hasSkew()
        Returns:
        true if the transformation matrix contains a skew, false otherwise.
      • hasTranslation

        public boolean hasTranslation()
        Returns:
        true if the transformation matrix contains a translation, false otherwise.