Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connection creation customization
Connection creation customization [message #226451] Thu, 16 April 2009 19:20 Go to next message
Tobias Neef is currently offline Tobias NeefFriend
Messages: 17
Registered: July 2009
Junior Member
Hi,

I created a basis diagram and want to enhance this now but I have a few
problems doing this.

The first thing is the connection between to figures. The figure has a
rectangle on top and a vertical line beneath. I want to specify that only
the line can be used to dock the connection. Currently the connection can
be done starting from every point. Also a bad thing about this is the big
spacing between the connection polyline and the two vertical figure lines.
This occurs because of the width of the rectangle which is wider than the
polyline. How can I specify that the connection starts and ends directly
at the line figure?

The second problem are also related to the connections. If I add a
connection I want that they all have the same spacing to the brother
connection and that the connections are sorted based on a specific value
from the domain model. If I am right I have to define a custom
layoutmanager for this. The problem then is the vertical polyline of the
base figure, this should be resized if there is not enough space left to
add a connection with the static spaceing. How could I implement this?

Regards,
Tobias
Re: Connection creation customization [message #226517 is a reply to message #226451] Fri, 17 April 2009 09:17 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Tobias,

Are you working on sequence diagram? ;-)

> The first thing is the connection between to figures. The figure has a
> rectangle on top and a vertical line beneath. I want to specify that
> only the line can be used to dock the connection. Currently the
I think you have to customize ConnectionAnchors by changing supclass of NodeFigure
used as a figure for diagram element.

> The second problem are also related to the connections. If I add a
> connection I want that they all have the same spacing to the brother
> connection and that the connections are sorted based on a specific
> value from the domain model. If I am right I have to define a custom
Again I hope you can do that with the connection anchors.

-----------------
Alex Shatalin
Previous Topic:Diagram notation model
Next Topic:How can I get the diagram after I get the viewer?
Goto Forum:
  


Current Time: Thu Apr 25 22:09:49 GMT 2024

Powered by FUDForum. Page generated in 0.02828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top