Package java.awt.geom

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


            GeneralPath path = new GeneralPath();
            path.moveTo((float) ul.getX(), (float) ul.getY());
            path.lineTo((float) ur.getX(), (float) ur.getY());
            path.lineTo((float) lr.getX(), (float) lr.getY());
            path.lineTo((float) ll.getX(), (float) ll.getY());
            path.closePath();

            g.draw(path);
        }
    }
View Full Code Here


        GeneralPath path = new GeneralPath();
        path.moveTo((float) ul.getX(), (float) ul.getY());
        path.lineTo((float) ur.getX(), (float) ur.getY());
        path.lineTo((float) lr.getX(), (float) lr.getY());
        path.lineTo((float) ll.getX(), (float) ll.getY());
        path.closePath();

        return path;
    }

    // Tell if the crop is consistent with having been derived from the
View Full Code Here

                xNum, xDen, yNum, yDen, i, i + 1, .1
            );
            segments.add(curve);
            path.append(curve, true);
        }
        path.closePath();
        shape = path;
    }
}
View Full Code Here

                xNum, xDen, yNum, yDen, i, i + 1, .1
            );
            segments.add(curve);
            path.append(curve, true);
        }
        path.closePath();
        shape = path;
    }
}
View Full Code Here

            Shape curve = Polynomial.createShape(xPoly, yPoly);
            segments.add(curve);
            path.append(curve, true);
        }
        path.closePath();
        shape = path;
    }
}
View Full Code Here

            Shape curve = Polynomial.createShape(xPoly, yPoly);
            segments.add(curve);
            path.append(curve, true);
        }
        path.closePath();
        shape = path;
    }
}
View Full Code Here

                new Line2D.Double(p.getX(), p.getY(), q.getX(), q.getY());
            segments.add(line);
            path.append(line, true);
            p = q;
        }
        path.closePath();
        shape = path;
    }
}
View Full Code Here

        GeneralPath path = new GeneralPath();
        path.moveTo(start[0], start[1]);
        path.append(ne, true);
        path.append(sw, true);
        path.closePath();

        shape = path;
    }

    private static void savePrefs() {
View Full Code Here

        for (int n=0; n<count; n++) {
            Shape curve = Cubic.createShape(xPoly[n], yPoly[n]);
            segments.add(curve);
            path.append(curve, true);
        }
        path.closePath();
        shape = path;
    }

    /** Calculates the closed natural cubic spline that interpolates
     * x[0], x[1], ... x[n].  The first segment is returned as
View Full Code Here

        polygon.moveTo(x + 25, y);
        for (int i = 0; i < xcoords.length; i++)
        {
            polygon.lineTo(xcoords[i], ycoords[i]);
        }
        polygon.closePath();
        g2.fill(polygon);
        BasicStroke wideStroke = new BasicStroke(2.0f);
        g2.setColor(Color.black);
        g2.setStroke(wideStroke);
        g2.draw(polygon);
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.