I am developing a small application in Java. I am using Java2D Library for drawing some graphical objects. Now i want to draw some semi-circle like shape or in simple words i need to draw this ( shape and this ) shape. I didn’t find any function for drawing semi-circle, but i guess that Arc2D.Double(. . .);
will work for me, so i tried it but i didn’t understand what params i need to pass to its constructor. So i end up with the strange kind of shape 🙁
Could some one explains these params in detail or refer to some good link.
To draw
(And for
)The parameters are explained here: Arc2D.Double
The method I have used here is: Arc2D.Double(double, double, double, double, double, double, int)
This link can also help.