paints line in graphics view