UML2 has a few node types that act as connection points to other nodes
without needing an edge to join to them.

The first example I have implemented is Entry Point and Exit Point in
state diagrams. These nodes need to stick to the bounds of some other
node to act as the connection point for edges.

There are also Ports in deployment diagrams Pins on activity diagrams
for which we'll need similar behaviour and attach to other node types.

To implement this I've introduced the Connector interface in GEF. A
FigNode can have multiple Connectors and a Connector refers back to
the node it is connected to.

To see this in operation drop an EntryPoint or ExitPoint into a State
in a UML2 state diagram.

The entry/exit node will attach itself to the nearest border point of
the enclosing state. It should stay hugging that border when the state
is moved or resized.

I think its working reasonably well for the first implementation. The
only thing I would like to change is the way that GEF prevents an
enclosed Fig from displaying on the border of its encloser while a
drag is taking place (try dragging an entry point to another place on
the state border)). I'll get that fixed at some time in GEF but its
not a major priority with the rest of what needs to be done.

Cheers

Bob

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2745941

To unsubscribe from this discussion, e-mail: 
[dev-unsubscr...@argouml.tigris.org].
To be allowed to post to the list contact the mailing list moderator, email: 
[li...@tigris.org]

Reply via email to