Testting the Java 2D methods