GeneralPath / ArrayList -> Polygon
Hi,
is it possible to convert shapes drawn using GeneralPath to a polygon (java.awt.polygon)?
e.g.: I have this shape:
public Shape drawBird(){
path.moveTo(50, 50);
path.lineTo(70, 44);
path.curveTo(100, 10, 140, 80, 160, 80);
path.lineTo(190, 40);
path.lineTo(200, 56);
path.quadTo(100, 150, 70, 60);
path.closePath();
return path;
}
Is it possible to define a polygon with these coordinates (using polygon.addPoint())?
Furthermore, is it possible to define coordinates stored in an ArrayList as a polygon?
private List <Point2D>allPlayerCoordinates =new ArrayList<Point2D>();
Thanks a lot!

