| ReconnectionContext [message #972374] |
Mon, 05 November 2012 10:25  |
Surya Kathayat Messages: 30 Registered: July 2012 |
Member |
|
|
Hi,
I am trying to reconnect a source of a Link programatically.
Fourth paramater in the ReconncetionContext constructor is "targetLocation". What does that represents?
Can "targetLocation" be determined from newAnchor, is yes how?
Otherwise how "ILocation" can be created/instiated?
Regards
Surya
ReconnectionContext reConContext = new ReconnectionContext(conn, oldAnchor, newAnchor, [b]??targetLocation??[/b]);
reConContext.setReconnectType(ReconnectionContext.RECONNECT_SOURCE);
IReconnectionFeature reConFeature = getFeatureProvider().getReconnectionFeature(reConContext);
if(reConFeature.canReconnect(reConContext)){
reConFeature.reconnect(reConContext);
oldSource.getOutgoingLinks().remove(link);
newSource.getOutgoingLinks().add(link);
}
[Updated on: Mon, 05 November 2012 10:26] Report message to a moderator
|
|
|
| Re: ReconnectionContext [message #981576 is a reply to message #972374] |
Mon, 12 November 2012 09:26  |
Michael Wenz Messages: 1267 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Surya,
it simply represents an x/y coordinate where to reconnect to and it is
optional. You might get the needed value from the anchor or any other shape
by evaluating its x/y coodinates.
Michael
|
|
|
Powered by
FUDForum. Page generated in 0.01670 seconds