Package java.awt.geom

Examples of java.awt.geom.GeneralPath.quadTo()


        // XXX Note: This is not an ellipse. What we really want is a "smooth polygon"...
        GeneralPath p = new GeneralPath();
        p.moveTo((float) north.x, (float) north.y);
        p.quadTo((float) west.x, (float) west.y, (float) south.x, (float) south.y);
        p.quadTo((float) east.x, (float) east.y, (float) north.x, (float) north.y);
        p.closePath();
        return p;
    }

View Full Code Here


            int wingHeight = (height - width) / 2;
            int dx = Math.min(20, wingHeight / 4);

            GeneralPath path = new GeneralPath();
            path.moveTo(-width, -height / 2);
            path.quadTo(-width + dx, -(width + height) / 4, -width, -width / 2);
            path.append(base, true);
            path.quadTo(-width + dx, (width + height) / 4, -width, height / 2);
            return path;
        }
    }
View Full Code Here

            GeneralPath path = new GeneralPath();
            path.moveTo(-width, -height / 2);
            path.quadTo(-width + dx, -(width + height) / 4, -width, -width / 2);
            path.append(base, true);
            path.quadTo(-width + dx, (width + height) / 4, -width, height / 2);
            return path;
        }
    }

    static void paintInputLines(InstancePainter painter, AbstractGate factory) {
View Full Code Here

        case PathIterator.SEG_LINETO:
        path.lineTo(coordinates[0], coordinates[1]);
              break;

    case PathIterator.SEG_QUADTO:
        path.quadTo(coordinates[0], coordinates[1],
        coordinates[2], coordinates[3]);
        break;

    case PathIterator.SEG_CUBICTO:
        path.curveTo(coordinates[0], coordinates[1],
View Full Code Here

        break;
      case PathIterator.SEG_MOVETO:
        path.moveTo(array[0], array[1]);
        break;
      case PathIterator.SEG_QUADTO:
        path.quadTo(array[0], array[1], array[2], array[3]);
        break;
      case PathIterator.SEG_CUBICTO:
        path.curveTo(array[0], array[1], array[2], array[3], array[4], array[5]);
        break;
      case PathIterator.SEG_CLOSE:
View Full Code Here

                break;
               
            case PathIterator.SEG_QUADTO:
                p = _transform(new Point2D.Float(coords[0], coords[1]));
                Point2D q = _transform(new Point2D.Float(coords[2], coords[3]));
                newPath.quadTo((float)p.getX(), (float)p.getY(), (float)q.getX(), (float)q.getY());
                break;
               
            case PathIterator.SEG_CUBICTO:
                p = _transform(new Point2D.Float(coords[0], coords[1]));
                q = _transform(new Point2D.Float(coords[2], coords[3]));
View Full Code Here

                break;
               
            case PathIterator.SEG_QUADTO:
                p = _inverseTransform(new Point2D.Float(coords[0], coords[1]));
                Point2D q = _inverseTransform(new Point2D.Float(coords[2], coords[3]));
                newPath.quadTo((float)p.getX(), (float)p.getY(), (float)q.getX(), (float)q.getY());
                break;
               
            case PathIterator.SEG_CUBICTO:
                p = _inverseTransform(new Point2D.Float(coords[0], coords[1]));
                q = _inverseTransform(new Point2D.Float(coords[2], coords[3]));
View Full Code Here

                break;
               
            case PathIterator.SEG_QUADTO:
                p = magnify(new Point2D.Float(coords[0], coords[1]));
                Point2D q = magnify(new Point2D.Float(coords[2], coords[3]));
                newPath.quadTo((float)p.getX(), (float)p.getY(), (float)q.getX(), (float)q.getY());
                break;
               
            case PathIterator.SEG_CUBICTO:
                p = magnify(new Point2D.Float(coords[0], coords[1]));
                q = magnify(new Point2D.Float(coords[2], coords[3]));
View Full Code Here

                break;
               
            case PathIterator.SEG_QUADTO:
                p = _transform(new Point2D.Float(coords[0], coords[1]));
                Point2D q = _transform(new Point2D.Float(coords[2], coords[3]));
                newPath.quadTo((float)p.getX(), (float)p.getY(), (float)q.getX(), (float)q.getY());
                break;
               
            case PathIterator.SEG_CUBICTO:
                p = _transform(new Point2D.Float(coords[0], coords[1]));
                q = _transform(new Point2D.Float(coords[2], coords[3]));
View Full Code Here

                break;
               
            case PathIterator.SEG_QUADTO:
                p = _inverseTransform(new Point2D.Float(coords[0], coords[1]));
                Point2D q = _inverseTransform(new Point2D.Float(coords[2], coords[3]));
                newPath.quadTo((float)p.getX(), (float)p.getY(), (float)q.getX(), (float)q.getY());
                break;
               
            case PathIterator.SEG_CUBICTO:
                p = _inverseTransform(new Point2D.Float(coords[0], coords[1]));
                q = _inverseTransform(new Point2D.Float(coords[2], coords[3]));
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.