|
Re: Setting BoxRelativeAnchor at the source of ConnectionContext does work!! [message #933867 is a reply to message #932767] |
Fri, 05 October 2012 08:09  |
Eclipse User |
|
|
|
Surya,
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).
Michael
"Surya Kathayat" schrieb im Newsbeitrag
news:k4ju1m$jkb$1@xxxxxxxxe.org...
Hi,
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??
Best regards
Surya
|
|
|
Powered by
FUDForum. Page generated in 0.05506 seconds