|Re: Setting BoxRelativeAnchor at the source of ConnectionContext does work!! [message #933867 is a reply to message #932767]
||Fri, 05 October 2012 08:09
| Michael Wenz
Registered: July 2009
Location: Walldorf, Germany
in the add method you can navigate from the passed anchor/shape to the
BoxRelativeAnchor you want to use. That will simply do the trick (both for
source and target side).
"Surya Kathayat" schrieb im Newsbeitrag
I have a dimond shaped graphical node. I have attached a ChopboxAnchor and
four BoxRelativeAnchors at each corners a diamond.
I have a context button to a node. A connection feature is attached to a
node. In the ToolBehaviorProvider/getContextButtonPad, I set box relative
anchor as setSourceAnchor of CreateConnectionContext.
But in the add method of LinkCreateFeature, I am still getting ChopboxAnchor
type as as the value of context.getSourceAnchor(). The concequence is that
source of a connection is connected to a border of diamond instead of a
(right) corner (where box relative anchor is set).
Any pointers will be appreciated??
Powered by FUDForum
. Page generated in 0.01843 seconds