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

Hello Alex,
Alex Shatalin escribiÃ:
Hello Jose,

But how to create the figure with an url that is not constant?I mean,
You can define as many subclasses of ScalableImageFigure as URIs in your configuration or you can just use proper URI ans pass it to the constructor on ScalableImageFigure creation time.

Sorry for this first question, I was so focused in the example I was provided that I didn't realize that a simple parameter for the constructor was enough (Actually I did but after writing the email :s)

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?
I think you have to just remove old image figure from it's parent and put new one there instead - the rest will be done by GEF for you.

And thank you very much for this answer, it works properly!!!!I think I tried everything but this (I tried creating again the parent, changing the primaryShape, refreshing and repainting everything...)


Regards,
Jose E. Rivera

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