Package com.tinyline.tiny2d

Examples of com.tinyline.tiny2d.TinyVector.addElement()


        int hH = daHeight(tile) >> 1;
        int triangleYTop = wH - ONE;
        int triangleXBottom = triangleYTop * 866 / 1000; // * sqrt(3)/2
        int triangleYBottom = triangleYTop / 2;
        TinyVector poly = new TinyVector(3);
        poly.addElement(new TinyPoint(daAnchorX + wH, daAnchorY + hH - triangleYTop));
        poly.addElement(new TinyPoint(daAnchorX + wH + triangleXBottom, daAnchorY + hH + triangleYBottom));
        poly.addElement(new TinyPoint(daAnchorX + wH - triangleXBottom, daAnchorY + hH + triangleYBottom));
        t2d.drawPolygon(poly);
    }

View Full Code Here


        int triangleYTop = wH - ONE;
        int triangleXBottom = triangleYTop * 866 / 1000; // * sqrt(3)/2
        int triangleYBottom = triangleYTop / 2;
        TinyVector poly = new TinyVector(3);
        poly.addElement(new TinyPoint(daAnchorX + wH, daAnchorY + hH - triangleYTop));
        poly.addElement(new TinyPoint(daAnchorX + wH + triangleXBottom, daAnchorY + hH + triangleYBottom));
        poly.addElement(new TinyPoint(daAnchorX + wH - triangleXBottom, daAnchorY + hH + triangleYBottom));
        t2d.drawPolygon(poly);
    }

    void drawLabel(final Tile tile, boolean black, String label) {
View Full Code Here

        int triangleXBottom = triangleYTop * 866 / 1000; // * sqrt(3)/2
        int triangleYBottom = triangleYTop / 2;
        TinyVector poly = new TinyVector(3);
        poly.addElement(new TinyPoint(daAnchorX + wH, daAnchorY + hH - triangleYTop));
        poly.addElement(new TinyPoint(daAnchorX + wH + triangleXBottom, daAnchorY + hH + triangleYBottom));
        poly.addElement(new TinyPoint(daAnchorX + wH - triangleXBottom, daAnchorY + hH + triangleYBottom));
        t2d.drawPolygon(poly);
    }

    void drawLabel(final Tile tile, boolean black, String label) {
        Tiny2D t2d = getT2D(tile);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.