Home Segments Index Top Previous Next

666: Mainline

If you incorporate meter-drawing messages into a method defined for the MeterGraphPane class, you simplify the exportation of your meter to another application. Using the file-out mechanism described in Chapter 30, you need to file out only the MeterGraphPane class, rather than the MeterGraphPane class and the drawing method, which you would have to redefine for the application's view-manager class.