
62 9 Chapter 3: Frameworks and Object-Oriented Programming
ables and functionality. In the first case, the scale factor and
offset were simply passed in as parameters. With the creation
of the CoordinateAdjuster object, that~and other~data
could be encapsulated in an object that could itself be shared.
This object can be passed around by other objects that have no
knowledge or interest in its internals.
Finally, you see the CoordinateAdjuster object being used as
a data member of the View object. Someone who is interested
in finding a point at which to draw something need not even
know if there is a CoordinateAdjuster involved: It is ...