question: private static boolean isIntegerTranslation ( AffineTransform xform ) { if ( xform . isIdentity ( ) ) { return true ; } if ( xform . getType ( ) == AffineTransform . TYPE_TRANSLATION ) { double tx = xform . getTranslateX ( ) ; double ty = xform . getTranslateY ( ) ; return ( tx == ( int ) tx && ty == ( int ) ty ) ; } return false ; }
target:  Returns true if the given AffineTransform is an integer translation.