Implements Curve Tool, Curve Preview with and without dotted line and Curve Example.