From: Brett L. <wak...@ea...> - 2005-12-08 21:27:36
|
> What we need is some kind of messages from the Model to the View > about changes of individual values that have taken place > and (possibly) need be reflected in the UI. I think you should revisit how we accomplished this for the StockChart. In StockChart, we just call repaint() whenever the model changes. I don't think there's any good reason why ORWindow needs to be any different. We don't need any sort of messaging subsystem if painting is *only* dealing with drawing the objects that represent the model as efficiently as possible. We can call repaint() as often as we need to. So far, the painting code hasn't shown any indication that it's too slow to be repeatedly repainted. ---Brett. |