Add the appropriate line class.