Adding a point to polygon
I've created a class that extends the awt.Polygon class. I'm trying to write a method that given the PathIterator of the polygon and a Point representing a vertex, adds the point at the appropriate location in the path.

For Example: A Polygon thats points are (0,0) (0,10) (10,10) (10,0) (A square), given the point (1,5)
would make the polygon (0,0) (1,5) (0,10) (10,10) (10,0)

Thanks in advance
Adding a point to polygon
===

I've created a class that extends the awt.Polygon class. I'm trying to write a method that given the PathIterator of the polygon and a Point representing a vertex, adds the point at the appropriate location in the path.

For Example: A Polygon thats points are (0,0) (0,10) (10,10) (10,0) (A square), given the point (1,5)
would make the polygon (0,0) (1,5) (0,10) (10,10) (10,0)

Thanks in advance