AffineTransform implements Cloneable, Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; AffineTransform that = (AffineTransform) o; return Double.compare(that.m00, m00) == 0 && Double.compare(that.m10, m10) == 0 && Double.compare(that.m01, m01) == 0 && Double.compare(that.m11, m11) == 0 && Double.compare(that.m02, m02) == 0 && Double.compare(that.m12, m12) == 0; } AffineTransform();  AffineTransform(AffineTransform t);  AffineTransform(double m00, double m10, double m01, double m11, double m02, double m12);  AffineTransform(float[] matrix);  AffineTransform(double[] matrix); int getType(); double getScaleX(); double getScaleY(); double getShearX(); double getShearY(); double getTranslateX(); double getTranslateY(); boolean isIdentity(); void getMatrix(float[] matrix); void getMatrix(double[] matrix); double getDeterminant(); void setTransform(float m00, float m10, float m01, float m11, float m02, float m12); void setTransform(double m00, double m10, double m01, double m11, double m02, double m12); void setTransform(AffineTransform t); void setToIdentity(); void setToTranslation(double mx, double my); void setToScale(double scx, double scy); void setToShear(double shx, double shy); void setToRotation(double angle); void setToRotation(double angle, double px, double py); static AffineTransform getTranslateInstance(double mx, double my); static AffineTransform getScaleInstance(double scx, double scY); static AffineTransform getShearInstance(double shx, double shy); static AffineTransform getRotateInstance(double angle); static AffineTransform getRotateInstance(double angle, double x, double y); void translate(double mx, double my); void scale(double scx, double scy); void shear(double shx, double shy); void rotate(double angle); void rotate(double angle, double px, double py); void concatenate(AffineTransform t); void preConcatenate(AffineTransform t); AffineTransform createInverse(); Point transform(Point src, Point dst); void transform(Point[] src, int srcOff, Point[] dst, int dstOff, int length); void transform(double[] src, int srcOff, double[] dst, int dstOff, int length); void transform(float[] src, int srcOff, float[] dst, int dstOff, int length); void transform(float[] src, int srcOff, double[] dst, int dstOff, int length); void transform(double[] src, int srcOff, float[] dst, int dstOff, int length); Point deltaTransform(Point src, Point dst); void deltaTransform(double[] src, int srcOff, double[] dst, int dstOff, int length); Point inverseTransform(Point src, Point dst); void inverseTransform(double[] src, int srcOff, double[] dst, int dstOff, int length); void inverseTransform(float[] src, int srcOff, float[] dst, int dstOff, int length); @Override AffineTransform clone(); @Override boolean equals(Object o); @Override int hashCode(); static final int TYPE_IDENTITY; static final int TYPE_TRANSLATION; static final int TYPE_UNIFORM_SCALE; static final int TYPE_GENERAL_SCALE; static final int TYPE_QUADRANT_ROTATION; static final int TYPE_GENERAL_ROTATION; static final int TYPE_GENERAL_TRANSFORM; static final int TYPE_FLIP; static final int TYPE_MASK_SCALE; static final int TYPE_MASK_ROTATION; }
@Test public void otherClassTest() { AffineTransform affineTransform = new AffineTransform(); String string = "Test"; Assert.assertFalse(affineTransform.equals(string)); }
@Test public void selfTest() { AffineTransform affineTransform = new AffineTransform(); Assert.assertTrue(affineTransform.equals(affineTransform)); }
@Test public void nullTest() { AffineTransform affineTransform = new AffineTransform(); Assert.assertFalse(affineTransform.equals(null)); }