Examples of closePath()


Examples of ae.java.awt.geom.GeneralPath.closePath()

            GeneralPath gp = new GeneralPath();
            gp.moveTo(x, y);
            gp.lineTo(x + wx, y + wy);
            gp.lineTo(x + wx + hx, y + wy + hy);
            gp.lineTo(x + hx, y + hy);
            gp.closePath();

            result = new DelegatingShape(gp);
            lbcache[ix] = result;
        }
View Full Code Here

Examples of ae.java.awt.geom.Path2D.closePath()

                     public void lineJoin() {}
                     public void lineTo(int x1, int y1) {
                         p2d.lineTo(S15_16ToFloat(x1), S15_16ToFloat(y1));
                     }
                     public void close() {
                         p2d.closePath();
                     }
                     public void end() {}
                 });

        return p2d;
View Full Code Here

Examples of com.google.code.appengine.awt.geom.GeneralPath.closePath()

            path.moveTo((float) xPoints[0], (float) yPoints[0]);
            for (int i = 1; i < nPoints; i++) {
                path.lineTo((float) xPoints[i], (float) yPoints[i]);
            }
            if (close)
                path.closePath();
        }
        return path;
    }

    private Shape transformShape(AffineTransform at, Shape s) {
View Full Code Here

Examples of com.google.gwt.canvas.dom.client.Context2d.closePath()

    context.lineTo(canvasWidth, canvasHeight/2);
    context.lineTo(canvasWidth*2/3, canvasHeight);
    context.lineTo(canvasWidth*2/3, canvasHeight*2/3);
    context.lineTo(0, canvasHeight*2/3);
    context.lineTo(0, canvasHeight/3);
    context.closePath();
    context.stroke();
    context.fill();
   
    return canvas.getCanvasElement();
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.PdfContentByte.closePath()

            ++traces;
            int segtype = points.currentSegment(coords);
            normalizeY(coords);
            switch (segtype) {
            case PathIterator.SEG_CLOSE:
                cb.closePath();
                break;

            case PathIterator.SEG_CUBICTO:
                cb.curveTo(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
                break;
View Full Code Here

Examples of com.iver.cit.gvsig.fmap.core.GeneralPathX.closePath()

       
      GeneralPathX gp = new GeneralPathX();
      gp.moveTo(0, 0);
      gp.lineTo(10.5, 10.5);
      gp.lineTo(10.5, 2);
      gp.closePath();
     
        values[0][0] = GeometryFactory.createPolygon2D(gp);
        values[0][1] = ValueFactory.createValue(1.0);

        values[1][0] = GeometryFactory.createPolygon2D(gp);
View Full Code Here

Examples of com.jgraph.gaeawt.java.awt.geom.GeneralPath.closePath()

                    break;
                case PathIterator.SEG_CUBICTO:
                    p.curveTo(points[j], points[j + 1], points[j + 2], points[j + 3], points[j + 4], points[j + 5]);
                    break;
                case PathIterator.SEG_CLOSE:
                    p.closePath();
                    break;
                }
                j += pointShift[type];
            }
            return p;
View Full Code Here

Examples of com.lowagie.text.pdf.PdfContentByte.closePath()

            ++traces;
            int segtype = points.currentSegment(coords);
            normalizeY(coords);
            switch(segtype) {
                case PathIterator.SEG_CLOSE:
                    cb.closePath();
                    break;
                   
                case PathIterator.SEG_CUBICTO:
                    cb.curveTo(coords[0], coords[1], coords[2], coords[3], coords[4], coords[5]);
                    break;
View Full Code Here

Examples of com.lowagie.text.pdf.PdfTemplate.closePath()

            template.lineTo(90, 80);
            template.lineTo(110, 80);
            template.lineTo(60, 110);
            template.lineTo(10, 80);
            template.lineTo(30, 80);
            template.closePath();
            template.stroke();
            template.sanityCheck();
           
            // we add the template on different positions
            cb.addTemplate(template, 0, 0);
View Full Code Here

Examples of diva.util.java2d.Polygon2D.closePath()

            for (int i = 2; i < coords.length; i += 2) {
                poly.lineTo(coords[i], coords[i + 1]);
            }

            poly.closePath();

            PaintedShape ps = new PaintedShape(poly);
            processPaintedShapeAttributes(ps, attributes);
            return ps;
        } else if (type.equals("line")) {
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.