Added "dotted" style to the setLine method