[SWT][Draw2D] refresh problem [message #465113] |
Tue, 06 December 2005 09:46 |
Jenny Messages: 22 Registered: July 2009 |
Junior Member |
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03175 seconds