Examples of lineTo()


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

            float x = positions[ix*2] + gs.dx - adl.ascentX;
            float y = positions[ix*2+1] + gs.dy - adl.ascentY;

            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);
View Full Code Here

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

                     public void moveTo(int x0, int y0) {
                         p2d.moveTo(S15_16ToFloat(x0), S15_16ToFloat(y0));
                     }
                     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() {}
View Full Code Here

Examples of ae.sun.font.LayoutPathImpl.SegmentPathBuilder.lineTo()

                pt.x = locs[n+2] - locs[n];
                pt.y = 0;
                if (at != null) {
                    at.deltaTransform(pt, pt);
                }
                builder.lineTo(tx += pt.x, ty += pt.y);
            }
            lp = builder.complete();

            if (lp == null) { // empty path
                tlc = fComponents[getComponentLogicalIndex(0)];
View Full Code Here

Examples of com.esri.core.geometry.Polygon.lineTo()

          }

          mPolygon.startPath(multipath.get(0).get(), multipath.get(0).get());

          for (int i=2;i<multipath.size();i+=2){
            mPolygon.lineTo(multipath.get(i).get(), multipath.get(i+1).get());
          }

          mPolygon.closeAllPaths();

          arg_idx++;
View Full Code Here

Examples of com.esri.core.geometry.Polyline.lineTo()

          }

          mPolyline.startPath(multipath.get(0).get(), multipath.get(1).get());

          for (int i=2;i<multipath.size();i+=2){
            mPolyline.lineTo(multipath.get(i).get(), multipath.get(i+1).get());
          }
          arg_idx++;
        }

      return GeometryUtils.geometryToEsriShapeBytesWritable(OGCGeometry.createFromEsriGeometry(mPolyline, null, true));
View Full Code Here

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

            int nPoints, boolean close) {
        GeneralPath path = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
        if (nPoints > 0) {
            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;
View Full Code Here

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

    context.setFillStyle(canvasGradient);
    context.setStrokeStyle(canvasGradient);
   
    context.beginPath();
    context.moveTo(0 , canvasHeight/3);
    context.lineTo(canvasWidth*2/3, canvasHeight/3);
    context.lineTo(canvasWidth*2/3, 0);
    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);
 
View Full Code Here

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

    }

    private static void splitLine(Document doc, PdfWriter writer) {
        PdfContentByte cb = writer.getDirectContentUnder();
        cb.moveTo(doc.right() / 2, doc.bottom());
        cb.lineTo(doc.right() / 2, doc.top());
        cb.stroke();
    }

    private static void booklet(String input) throws Exception {
        String output = input.replace(".pdf", "-booklet.pdf");
View Full Code Here

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

  
    public FakeSpatialObjectDriver() throws ParseException{
       
      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);
View Full Code Here

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

                switch(type){
                case PathIterator.SEG_MOVETO:
                    p.moveTo(points[j], points[j + 1]);
                    break;
                case PathIterator.SEG_LINETO:
                    p.lineTo(points[j], points[j + 1]);
                    break;
                case PathIterator.SEG_QUADTO:
                    p.quadTo(points[j], points[j + 1], points[j + 2], points[j + 3]);
                    break;
                case PathIterator.SEG_CUBICTO:
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.