I have a problem in drawing arc for a non-square extents. I have to draw an arc for the following inputs

width = 180, height = 20, startangle = 120 degree, endangle = 180 degree

The arc is not coming as expected way.

Java API doc itself, it has been mentioned that upper right corner will be always treated for 45 degree. I think that is causing the issue. I need to solve that issue...

So please help me to solve this issue..