public override bool draw(IPlotter plotter) { using (var path = plotter.BeginPath(Brush, Pen)) { path.moveTo(P1); path.lineTo(P2); if (Outline) { path.stroke(); } if (Fill) { path.fill(); } return(true); } }