A pattern for developing flexible classes for graphics applications involves 3 parts:
-
A data representation of information to be displayed.
-
The frame, canvas, buttons, etc. - components that make up the display or view of the data.
-
Event handlers for the view components - controllers.
These 3 parts are often referred to as the model-view-controller pattern.