Encapsulates a custom user-defined line cap.