Package java.awt.geom

Examples of java.awt.geom.Path2D.lineTo()


   
    Path2D path = new Path2D.Double();
    x += .5;
    int lineLength = 18;
    path.moveTo(x + lineLength, y);
    path.lineTo(x, y);
    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
View Full Code Here


    Path2D path = new Path2D.Double();
    x += .5;
    int lineLength = 18;
    path.moveTo(x + lineLength, y);
    path.lineTo(x, y);
    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
View Full Code Here

    x += .5;
    int lineLength = 18;
    path.moveTo(x + lineLength, y);
    path.lineTo(x, y);
    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
    path.lineTo(x + lineLength, y + 1);
View Full Code Here

    path.moveTo(x + lineLength, y);
    path.lineTo(x, y);
    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
    path.lineTo(x + lineLength, y + 1);
    path.closePath();
   
View Full Code Here

    path.lineTo(x, y);
    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
    path.lineTo(x + lineLength, y + 1);
    path.closePath();
   
    g.draw(path);
View Full Code Here

    path.lineTo(x, y + height);
    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
    path.lineTo(x + lineLength, y + 1);
    path.closePath();
   
    g.draw(path);
   
View Full Code Here

    path.lineTo(x + lineLength, y + height);
   
    path.lineTo(x + lineLength, y + height -1);
    path.lineTo(x + 1, y + height -1);
    path.lineTo(x + 1, y + 1);
    path.lineTo(x + lineLength, y + 1);
    path.closePath();
   
    g.draw(path);
   
    int boxWidth = width - (2 * ANNOTATION_TEXT_PADDING);
 
View Full Code Here

                    windBarbDefinition.zeroWindRadius, windBarbDefinition.zeroWindRadius);
        } else {

            // draw wind barb line
            path.moveTo(0, 0);
            path.lineTo(0, positionOnPath);
        }
        // pennants management
        if (squares > 0) {
            positionOnPath = drawSquare(path, positionOnPath);
            positionOnPath += windBarbDefinition.elementsSpacing; // add spacing
View Full Code Here

        int positionOnPath = 0;

        // draw wind barb line
        path.moveTo(0, positionOnPath);
        positionOnPath -= windBarbDefinition.vectorLength;
        path.lineTo(0, positionOnPath);

        path.moveTo(windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
                - windBarbDefinition.shortBarbLength / 2.0f);
        path.lineTo(-windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
                + windBarbDefinition.shortBarbLength / 2.0f);
View Full Code Here

        positionOnPath -= windBarbDefinition.vectorLength;
        path.lineTo(0, positionOnPath);

        path.moveTo(windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
                - windBarbDefinition.shortBarbLength / 2.0f);
        path.lineTo(-windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
                + windBarbDefinition.shortBarbLength / 2.0f);

        path.moveTo(-windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
                - windBarbDefinition.shortBarbLength / 2.0f);
        path.lineTo(windBarbDefinition.shortBarbLength / 2.0f, positionOnPath
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.