|Re: about shape Example [message #238250 is a reply to message #238245]
||Mon, 03 September 2007 05:44
| Andreas Schosser
Registered: July 2009
GEF realizes the MVC (Model-View-Controller) concept. The Figures(View)
are being created and updated by the corresponding EditParts
(Controller) which usually listen to changes of the model elements.
Please take a look at the GEF developer's guide:
If you want to implement editable labels for the shapes, the steps you
will have to undertake will probably look like this:
1.) Realize the model element (e.g. extend EllipticalShape)
2.) Implement the figure (e.g. extend the createFigure() /
3.) Update the edit-part [e.g. extend refreshVisuals(), listen to
additional model (property) changes, react to direct-edit requests by
overriding performRequest(Request)-method, implement direct-edit
Did you read the shapes tutorial?
Good luck! :)
> I want to modify the gef example shapes for my study.I want to add text in
> ellipse,How to do this,I try to add code in createFigure(),but I failed.
Powered by FUDForum
. Page generated in 0.02450 seconds