How to draw a style line(bezier,polyline etc.) as:

----|----|----|----|----|----|----


Thanks.