![]() |
![]() |
![]() |
![]() |
![]() |
|
All GUI applications include instances of the
SubPane, the TopPane, and the ViewManager
class. Of these, you need to add instance variables and methods to those
supplied with the SubPane and ViewManager classes.
Accordingly, you create the MeterGraphPane and the
CalorieViewManager classes, which fit together with various
superclasses as follows:
*----------------* | Object | *----------------* | | subclass | *------------------------------------------* v subclass v *----------------* *----------------* | Window | | ViewManager | *----------------* *----------------* | | subclass | | *------------------* | subclass v subclass v v *----------------* *-------------------* *--------------------* | SubPane | | ApplicationWindow | | CalorieViewManager | *----------------* *-------------------* *--------------------* | subclass | subclass | instance v v v *----------------* *----------------* theCalorieViewManager | GraphPane | | TopPane | *----------------* *----------------* | subclass | instance v v *----------------* theTopPane | MeterGraphPane | *----------------* | instance v theMeterGraphPane