Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » FreeFormConnection and flexibility
FreeFormConnection and flexibility [message #940819] Fri, 12 October 2012 01:25 Go to next message
Junior Lekane Nimpa is currently offline Junior Lekane NimpaFriend
Messages: 23
Registered: September 2012
Junior Member
Hello all,
i want to add a connection from a class to itself, but the FreeFormConnection is really straight. I want to make it so flexible that it looks like the character U.

Should i add bend point to the connection ?
if yes, how to do that ? like this ?
getFeatureProvider().addIfPossible(AddBendPointContext());


or should i use a curved connection ?

Any hint is welcome
Many thanks
Junior
Re: FreeFormConnection and flexibility [message #941260 is a reply to message #940819] Fri, 12 October 2012 10:42 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Junior,

both ways are possible. CurvedConnections are fixed in the way the U will
look like, FreeFormConnections offer more options to influence e.g. how
large the U will be. You can simply add bendpoints when you create the
FreeFormConnection, there's no need to delegate to an add bendpoint feature
and context. Just keep in mind that with FreeFormConnections user may also
change the U once it appears in the UI. This might of course be disabled by
disabling move, add and delete bendpoint features.

Michael
Previous Topic:FixPointAnchor and GraphicsAlgorithm
Next Topic:SWTBot and Graphiti
Goto Forum:
  


Current Time: Fri Apr 26 21:26:57 GMT 2024

Powered by FUDForum. Page generated in 0.02630 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top