* Added support for rounded lines and updated sample accordingly.
* Added bounds checking to setParameter.