encapsulated draw event parameters into a single class