Examples of lineTo()


Examples of com.lowagie.text.pdf.PdfAppearance.lineTo()

           
            tpOn.setRGBColorFill(255, 128, 128);
            tpOn.rectangle(1, 1, 18, 18);
            tpOn.fillStroke();
            tpOn.moveTo(1, 1);
            tpOn.lineTo(19, 19);
            tpOn.moveTo(1, 19);
            tpOn.lineTo(19, 1);
            tpOn.stroke();
           
            field.setWidget(new LwgRectangle(100, 700, 120, 720), PdfAnnotation.HIGHLIGHT_INVERT);
View Full Code Here

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

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

Examples of com.lowagie.text.pdf.PdfPatternPainter.lineTo()

           
            cb.addTemplate(tp, 50, 50);
            PdfPatternPainter pat2 = cb.createPattern(10, 10, null);
            pat2.setLineWidth(2);
            pat2.moveTo(-5, 0);
            pat2.lineTo(10, 15);
            pat2.stroke();
            pat2.moveTo(0, -5);
            pat2.lineTo(15, 10);
            pat2.stroke();
            cb.setLineWidth(1);
View Full Code Here

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

            // we create a PdfTemplate
            PdfTemplate template = cb.createTemplate(120, 120);
           
            // we add some graphics
            template.moveTo(30, 10);
            template.lineTo(90, 10);
            template.lineTo(90, 80);
            template.lineTo(110, 80);
            template.lineTo(60, 110);
            template.lineTo(10, 80);
            template.lineTo(30, 80);
View Full Code Here

Examples of com.trolltech.qt.gui.QPainterPath.lineTo()

      double y1 = (double) tileYMap.get(conn.startTile)*tileSize  + (conn.startWire*tileSize)/enumSize;
      double x2 = (double) tileXMap.get(conn.endTile)*tileSize  + (conn.endWire%tileSize);
      double y2 = (double) tileYMap.get(conn.endTile)*tileSize  + (conn.endWire*tileSize)/enumSize;

      path.moveTo(x1, y1);
      path.lineTo(x2, y2);
    }
    PathItem item = new PathItem(path, pd);
    item.setBrush(QBrush.NoBrush);
    item.setPen(wirePen);
    item.setAcceptHoverEvents(true);
View Full Code Here

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

        // Create the graphic
        PaintedList graphic = new PaintedList();

        Polygon2D polygon = new Polygon2D.Double();
        polygon.moveTo(30, 50);
        polygon.lineTo(70, 80);
        polygon.lineTo(70, 20);
        graphic.add(new PaintedShape(polygon, Color.red, 1.0f));

        Line2D line1 = new Line2D.Double(10, 50, 30, 50);
        graphic.add(new PaintedPath(line1));
View Full Code Here

Examples of diva.util.java2d.Polyline2D.lineTo()

        _shape = new BasicFigure(path, Color.red);
        layer.add(_shape);

        Polyline2D poly = new Polyline2D.Double();
        poly.moveTo(240, 120);
        poly.lineTo(280, 140);
        poly.lineTo(240, 160);
        poly.lineTo(280, 180);
        poly.lineTo(240, 200);
        poly.lineTo(280, 220);
        poly.lineTo(240, 240);
View Full Code Here

Examples of edu.umd.cs.piccolo.nodes.PPath.lineTo()

    PPath pn = PPath.createLine(x1, y1, x2, y2);
    pn.setStrokePaint(currentPenColor);
    pn.setPaint(null)// Null paint may render faster than the default.
    pn.setStroke(stroke);
    pn.moveTo(x1, y1);
    pn.lineTo(x2, y2);
    layer.addChild(pn);
  }

  /**
   * Draw a rectangle given the two points (x1,y1) and (x2,y2) using the current
View Full Code Here

Examples of gwt.g2d.client.graphics.canvas.Context.lineTo()

 
  @Override
  public void visit(Surface surface) {
    Context context = surface.getContext();
    context.moveTo(fromX, fromY);
    context.lineTo(toX, toY);
  }
}
View Full Code Here

Examples of java.awt.GradientPaint.lineTo()

    // Controllo se questo stato corrisponde alla media dei jobs
    if (i == queueLenght() - queueMedia) {
      // disegno un triangolo sopra lo stato che rappresenta la media
      GeneralPath gp = new GeneralPath(GeneralPath.WIND_EVEN_ODD);
      gp.moveTo((float) x, (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH), (float) (y - ELEM_HEIGHT / 2));
      gp.lineTo((float) (x + ELEM_WIDTH / 2.0), (float) (y - ELEMS_GAP));
      gp.closePath();
      drawCenteredText("Q", queueC, null, x + ELEM_WIDTH / 2.0, y - ELEM_HEIGHT * 0.7, g2d, false, true);
      g2d.setColor(queueC);
      g2d.fill(gp);
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.