Ok thanks,

In the end I used Bresenham's algorithm 
http://www.codecodex.com/wiki/Bresenham%27s_line_algorithm#Java there are 
more algorithms but to make a straight line I opted for this.

To make the dash pattern I used the lineTo and moveTo functions of 
GeneralPath.


-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to codenameone-discussions+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/784cab65-ecfc-463a-af9b-8fb2e077884a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to