define anchors (should this be a FAQ?) [message #176705] |
Wed, 12 March 2008 00:12 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: rossi.remove.this.cs.unibo.it
It looks like this is a recurring question but I've still not been able
to get a usable hint out of the various replies given in the past.
The problem is quite simple: I want to define specific anchor points for
my diagram elements but I *do not* want to mess up with coding.
I'm looking for a declarative way, using the graph and the map editors.
As for a suggestion given by Alex Shatalin some months ago this should
be possible by using child nodes of the main element's node (attached to
the border of the parent node by using the affixedParentSide property)
and link them to other diagram elements.
Looks reasonable to me.
But still I have no idea of how to accomplish this.
Since I have to use the affixedParentSide property, which is a node's
property, I guess each element to be used as an anchor point has to be
modeled as a node.
So, in the graph model, I need to have a figure descriptor (say, a small
circle) and a node for the anchor elements.
The point I'm missing is how to express this parent/child relationship
between the main diagram elements and their anchor points in the graph
model (and if I need to do this at this stage or it is something that
have to be set up in the mapping model).
Once this has been set up properly I have further doubts about how to
instruct the diagram code to allow connections ony by using the anchor
points (link constraints?) and how to map a connection between anchor
points as a connection between the two main elements in my ecore model
(in my case a connection is a class that references the two elements
that are to be connected).
Help anyone?
Thanks,
Davide.
|
|
|
Powered by
FUDForum. Page generated in 0.04453 seconds