About Model! [message #240249] |
Tue, 11 December 2007 15:10 |
Hoping White Messages: 71 Registered: July 2009 |
Member |
|
|
Hello everyone,
I am new to GEF and I have read some gef examples. Now I have some
confusion about model. Did the model should include the properties of the
figure such as location and size or this is just the job for layout manager?
For what I have read, I see all the model kind of have some thing like
contraint, that define the location and size of the figure in the model.A
few application even design two kinds of models,one for figure, and one for
real use.and they have some mapping relations.
Now here's my question, if I don't care about the location and size of
the figure, and I just want the editor to use some layout policy to layout
my figures, how can I do? I mean if I move or resize these figures, the
editor won't marked as dirty, and when I programtically add some model, the
editor can layout automatically.
Thanks very much!
--
Hoping White
|
|
|
Re: About Model! [message #240268 is a reply to message #240249] |
Wed, 12 December 2007 15:58 |
Anthony Hunter Messages: 446 Registered: July 2009 |
Senior Member |
|
|
Hi Hoping,
If you look at the GEF flow example, the nodes and connections are
automatically arranged and location and side is not persisted. The GEF
shapes example allows to user to set location and side, so they are
persisted in the model.
Cheers...
Anthony
"Hoping White" <baihaoping@gmail.com> wrote in message
news:fjm98s$qav$1@build.eclipse.org...
> Hello everyone,
> I am new to GEF and I have read some gef examples. Now I have some
> confusion about model. Did the model should include the properties of the
> figure such as location and size or this is just the job for layout
> manager? For what I have read, I see all the model kind of have some thing
> like contraint, that define the location and size of the figure in the
> model.A few application even design two kinds of models,one for figure,
> and one for real use.and they have some mapping relations.
> Now here's my question, if I don't care about the location and size of
> the figure, and I just want the editor to use some layout policy to layout
> my figures, how can I do? I mean if I move or resize these figures, the
> editor won't marked as dirty, and when I programtically add some model,
> the editor can layout automatically.
> Thanks very much!
>
> --
> Hoping White
>
|
|
|
Powered by
FUDForum. Page generated in 0.03533 seconds