added line cap style handling, setparameter() added.