Package painting

Examples of painting.ColorSquare


        colorSquareArr = new ArrayList<List<ColorSquare>>();

        for (int i = 0; i < SQUARES_NUMBER_Y; i++) {
            List<ColorSquare> colorSquareArrX = new ArrayList<ColorSquare>();
            for (int j = 0; j < SQUARES_NUMBER_X; j++) {
                ColorSquare colorSquare = new ColorSquare();
                colorSquare.setXPos(j * SQUARE_WIDTH);
                colorSquare.setYPos(i * SQUARE_HEIGHT);
                colorSquare.setXCoord(j);
                colorSquare.setYCoord(i);
                colorSquareArrX.add(colorSquare);
            }
            colorSquareArr.add(colorSquareArrX);
        }
    }
View Full Code Here

TOP

Related Classes of painting.ColorSquare

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.