WeiterWay
发贴: 25
积分: 0
|
于 2004-12-03 15:30
I think your DrawPane is the Invoker here. It is a command manager or command aggregator. Your implementation has one drawback: It is not a good idea to let command object implements shap object(the receiver or response object). this way the response object's interface is exposed to client (tight-coupled). it is better to embed the implementation details for command object, or even further maybe we can use bridge pattern to externalize the command receiver's implementation.
WeiterWay edited on 2004-12-03 15:38
|