Class AffineTransform

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class AffineTransform
    extends java.lang.Object
    implements java.lang.Cloneable, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • AffineTransform

        public AffineTransform()
      • AffineTransform

        public AffineTransform​(float m00,
                               float m10,
                               float m01,
                               float m11,
                               float m02,
                               float m12)
      • AffineTransform

        public AffineTransform​(double m00,
                               double m10,
                               double m01,
                               double m11,
                               double m02,
                               double m12)
      • AffineTransform

        public AffineTransform​(float[] matrix)
      • AffineTransform

        public AffineTransform​(double[] matrix)
    • Method Detail

      • getType

        public int getType()
      • getScaleX

        public double getScaleX()
      • getScaleY

        public double getScaleY()
      • getShearX

        public double getShearX()
      • getShearY

        public double getShearY()
      • getTranslateX

        public double getTranslateX()
      • getTranslateY

        public double getTranslateY()
      • isIdentity

        public boolean isIdentity()
      • getMatrix

        public void getMatrix​(double[] matrix)
      • getDeterminant

        public double getDeterminant()
      • setTransform

        public void setTransform​(double m00,
                                 double m10,
                                 double m01,
                                 double m11,
                                 double m02,
                                 double m12)
      • setToIdentity

        public void setToIdentity()
      • setToTranslation

        public void setToTranslation​(double mx,
                                     double my)
      • setToScale

        public void setToScale​(double scx,
                               double scy)
      • setToShear

        public void setToShear​(double shx,
                               double shy)
      • setToRotation

        public void setToRotation​(double angle)
      • setToRotation

        public void setToRotation​(double angle,
                                  double px,
                                  double py)
      • getTranslateInstance

        public static AffineTransform getTranslateInstance​(double mx,
                                                           double my)
      • getScaleInstance

        public static AffineTransform getScaleInstance​(double scx,
                                                       double scY)
      • getShearInstance

        public static AffineTransform getShearInstance​(double shx,
                                                       double shy)
      • getRotateInstance

        public static AffineTransform getRotateInstance​(double angle)
      • getRotateInstance

        public static AffineTransform getRotateInstance​(double angle,
                                                        double x,
                                                        double y)
      • translate

        public void translate​(double mx,
                              double my)
      • scale

        public void scale​(double scx,
                          double scy)
      • shear

        public void shear​(double shx,
                          double shy)
      • rotate

        public void rotate​(double angle)
      • rotate

        public void rotate​(double angle,
                           double px,
                           double py)
      • transform

        public void transform​(Point2D[] src,
                              int srcOff,
                              Point2D[] dst,
                              int dstOff,
                              int length)
      • transform

        public void transform​(double[] src,
                              int srcOff,
                              double[] dst,
                              int dstOff,
                              int length)
      • transform

        public void transform​(float[] src,
                              int srcOff,
                              float[] dst,
                              int dstOff,
                              int length)
      • transform

        public void transform​(float[] src,
                              int srcOff,
                              double[] dst,
                              int dstOff,
                              int length)
      • transform

        public void transform​(double[] src,
                              int srcOff,
                              float[] dst,
                              int dstOff,
                              int length)
      • deltaTransform

        public void deltaTransform​(double[] src,
                                   int srcOff,
                                   double[] dst,
                                   int dstOff,
                                   int length)
      • createTransformedShape

        public Shape createTransformedShape​(Shape src)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object