[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Repainting Variable Custom Figures

But how to create the figure with an url that is not constant?I mean, when i call the super constructor it needs a static URL. I take this URL from the attribute of the object, so the image URLs are not previously identified, but they are set at "runtime"; i.e., i will repaint an object with the image url specified in one of its attributes.

Other question is, to replace the old figure should i just replace primaryShape with the new figure?What method should I call to repaint the figure?

Thank you in advance,
Jose E. Rivera

Alex Shatalin escribiÃ:
Hello Jose,

While handling the notification you can first remove "old" figure with old image and then add new one using appropriate layout constraints.

-----------------
Alex Shatalin