Wont be it better to make the signature of setLineWidth function with float width as backing LineDrawing supports float line width.