[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] [SWT][Draw2D] refresh problem

Hello,

I have a structure Model/View/Controler. In Model, I have an abstract class « model » and other class which extend from the class « model ». The objects are overlapping one in another : «grille » contains « ligneBloc » and « ColBloc » which contain « Bloc » .... Just the last object is drawed with draw2D. All these objects correspond to other classes in View (extend from the class Figure of draw2D). The « grilleFigure » is add to a SWT canvas.

My problem is this one : if I do not touch to the structure of the object (for example if I move an object or if I transfer a line) and then I call a blocFigure.repaint(), it is ok. But if I add a ligne to a « bloc » and then I call a blocFigure.repaint() so I can not see the difference. I can not paint again « grille » all the time because I must be in top on the left of the image if not nothing is posted.
I do not understand how to do to resolve this problem.
Please help me :)
thanks