Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » [SWT][Draw2D] refresh problem
[SWT][Draw2D] refresh problem [message #465113] Tue, 06 December 2005 09:46
Jenny is currently offline JennyFriend
Messages: 22
Registered: July 2009
Junior Member

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

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 :)
Previous Topic:Why is composites like Table not intended to be subclassed?
Next Topic:SWT and network / socket data?
Goto Forum:

Current Time: Fri Feb 26 07:03:15 GMT 2021

Powered by FUDForum. Page generated in 0.01747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top