who can tell me how to draw a broken line?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   fan_jingjian
Posted On:   Saturday, September 8, 2001 09:17 AM

i don't know how to draw a broken line.who can help me?

Re: who can tell me how to draw a broken line?

Posted By:   fan_jingjian  
Posted On:   Saturday, September 8, 2001 10:26 PM

Befor drawing, set Stroke first. For example,


float[] dash1 = {10.0f};

g.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER, 10.0f, dash1, 0.0f));



Then, i can draw a broken line.
About | Sitemap | Contact