Design for Button5 Program

Main:

MyCanvas

Model:

Square (is a part of the "model" data)

ControlGlobal:

ControlSingle:

ButtonLeft, Right, Bigger, Smaller

ButtonX


Aggregation Hierarchy

Main


Class Hierarchy

Main

MyCanvas

Model

Square

ControlPanel

MyButton