tags:

views:

227

answers:

3

I'm practicing my swing abilities for the upcoming test, and fried gave me idea to draw biohazard sign like this :

alt text

I could draw the circles with Elipse2D, but then I somehow need to cut those 3 triangles. Any ideas how I can do that ?

+1  A: 

Maybe this is actually quite easy (I'm not sure how the Swing API handles lines). Draw lines coming out from the center to the points on the circumference of a circle, and just skip those portions for line drawing.

Chris Dennett
+3  A: 

You can use the Arc2D class to draw each line by specifying the start and extent parameters in degrees.

SLaks
+5  A: 
Bragboy