Points in plane sources code

​The files are created according to the following structure Picture

PointsInThePlane.java


package pointsinplane;


public classPointsInPlane {

    /**
     * @param args the command line arguments
     */
public static void main(String[] args) {
        // TODO code application logic here
Point A=new Point(2,4);
        Point B=new Point(8, 3);
        MainWindow mainWindow=new MainWindow(A,B);

        System.out.println("Before: A("+A.x+","+A.y+")");
        System.out.println("Before: B("+B.x+","+B.y+")");

 //After moving
        A.x=1;
        A.y=3;
        mainWindow.moveToPoint(A, B);
         System.out.println("After moving: A("+A.x+","+A.y+")");
        System.out.println("After moving: B("+B.x+","+B.y+")");

    }

}

MainWindow.java

pdf
mainwindow.pdf
File Size: 68 kb
File Type: pdf
Download File


Drawing.java

pdf
drawing.pdf
File Size: 81 kb
File Type: pdf
Download File


Point

pdf
point.pdf
File Size: 57 kb
File Type: pdf
Download File


Constants

pdf
constants.pdf
File Size: 63 kb
File Type: pdf
Download File