Doing a simulation-like map with GMF [message #112026] |
Wed, 14 March 2007 17:15  |
Eclipse User |
|
|
|
Originally posted by: roniburd.andrew.cmu.edu
Hi, I'm researching GMF as a possible tool for our project.
We have to create a simlation screen that will allow the user to place
elements and assigne a path to them. I've done the mindmap tutorial with
success and liked the results, but I was wondering if there anyone sees a
problem of creating this type of app with GMF.
My question is that the waypoint in a path that an element must follow,
should be X,Y as oppsosed to UML or other diagrams where position is not
important. Is there anything I should be aware of? Are there any fundamental
roadbloack to do this in GMF?
Thanks!
-Roni Burd
Graduate Student Candidate
Carnegie Mellon
|
|
|
|
|
Re: Doing a simulation-like map with GMF [message #112385 is a reply to message #112253] |
Fri, 16 March 2007 07:05  |
Eclipse User |
|
|
|
Originally posted by: 5d5.mail.ru
You should look for code like in SetBoundsCommand that modifies
LayoutConstraint of notation Node or Bendpoints of notation Edge.
I've just thought that you may try to listen to notation model changes
in editpart and update domain model accordingly. In fact editparts
already listen to changes in their models so you may trace events in
handleNotificationEvent(Notification) in editparts and see what happens
there.
Roni Burd wrote:
> Thanks.
>
> I will need to persist the coordinates in the domain model since the file
> with coordinates may be suplied from an external program.
>
> What classes should I look for the do this "logic patching"?
>
> Thanks
>
> "Dmitry Stadnik" <5d5@mail.ru> wrote in message
> news:etb8gj$m0l$1@utils.eclipse.org...
>> Hello!
>>
>> Positions are stored in notation model but nonetheless they are persisted
>> and may be edited in precise way. There are three ways to change
>> positions:
>>
>> 1. Layout service arranges elements on diagram upon user request but may
>> be disabled.
>> 2. Property sheet exposes coordinates but it may do it in read-only mode.
>> 3. Editpolicies of editparts show handles that user may drag to modify
>> node bounds and link bendpoints; as the author of diagram editor you may
>> precisely specify their behaviour.
>>
>> You may also store coordinates in domain model but in this case you should
>> handcode synchronization with notation model or patch logic to use domain
>> model directly instead of notation model.
>>
>> Roni Burd wrote:
>>> Hi, I'm researching GMF as a possible tool for our project.
>>>
>>> We have to create a simlation screen that will allow the user to place
>>> elements and assigne a path to them. I've done the mindmap tutorial with
>>> success and liked the results, but I was wondering if there anyone sees a
>>> problem of creating this type of app with GMF.
>>>
>>> My question is that the waypoint in a path that an element must follow,
>>> should be X,Y as oppsosed to UML or other diagrams where position is not
>>> important. Is there anything I should be aware of? Are there any
>>> fundamental roadbloack to do this in GMF?
>>>
>>> Thanks!
>>>
>>> -Roni Burd
>>> Graduate Student Candidate
>>> Carnegie Mellon
>>>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06100 seconds