I'm developing an editor with GEF. In my editor there are some nodes that have an ellipse as compartment.

My problem is calculating the minimun ellipse bound size so that all children object's are contained in the ellipse.

I've attached an image to better explain what i'm saying

I need to get the minimun width and height of the ellipse, so that the point relative to the origin is on the ellipse perimeter.

If someone can help me i'll be great.

Tanks in advance

Mauro P.]]>

What about the Ellipse.containsPoint()? This method could gives you a hint.]]>