refactor of StrokeStyleControl