I played around for some days with graphiti but theres one point I could not figure out by now.
How can I create a connection with two polylines so that I get somethin like ==>. A ConnectionDecorator would just do the job for the arrow-tip but I can't get the double line.
Thank you for your answer. I hoped that there would be some other possibility, since I'm trying to build a modelling-tool for which double lines are essential.
But for now I have to live with this workaround. Would be a nice feature though...
EDIT: I'm trying to get the second line as a ConnectionDecorator right now but I can't see where to get the total length of the connection and I need the total length to specify my decorator. Or I am totally confused.
I tried to create a parallel line to the connection with a offset of 4px but I came across the problem that i could not figure out how to get the X/Y-coordinates of the connection to set the the decorator right.
Is there a way to get the start and end coordinates of the connection?
Thank you, I looks quite like a want it.
Although it would be nice to be able to define a offset for the connection, because if I draw the second line with a connection decorator it is not symmetrical.
The problem is, that I need to represent a connection with a double line.
With your last posting a was able to create a connection with a polyline as a static decorator from one BoxRelativeAnchor to another.
I know it is a ugly solution but it is the only one I can think of right now and that works more or less by now. (Thanks to you!)
I'll give your idea with setting the anchors of a try. Sounds pretty good
But I would really appreciate if a preconfigured lineStyle.Double ships with a future release
I played around with this workaround for a while now but I can not figure out how to update the given length of my decorator line when one of the shapes it is attached to is moved in the editor.
I wrote a layoutFeature but found out that this is just called when the connection is created but not when you move the shapes with the anchor.
Can/should I do this with extending the AbstractMoveShapeFeature?