draw dashes and solid borders on params.