|Any hooks for connection source feedback? [message #827608]
||Fri, 23 March 2012 15:02
| Robert Brodt
Registered: August 2010
Location: Colorado Springs, CO
I'm currently working on the eclipse BPMN2 Modeler project and I've run across a snag involving connections between two BPMN2 "Pools". Pools represent participants in a process flow and are rendered as large, narrow rectangles. There may be several connections between them representing message exchanges between the participants.
The problem is when creating these connections, Graphiti uses a chopbox anchor which encompasses the entire Pool rectangle. This makes it really difficult for the user to see, where along the edge of the pool, the connection was originally started (see below).
Here the connection was started from a point on the edge of the bottom Pool, directly below the mouse cursor. What I really want is to dynamically set the source feedback anchor point to be at a point on the edge of the Pool rectangle nearest the mouse cursor, something like this:
The only way I've been able to do this is to create a small invisible rectangle that is a child of the Pool rectangle, and then change its location in getChopboxAnchorArea() in my ToolBehaviorProvider class. Unfortunately, this requires a command stack transaction which, if the connection is cancelled, leaves a "do nothing" transaction on the stack.
Is there any other way of handling this?
[Updated on: Fri, 23 March 2012 15:08]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02250 seconds