Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Rounded / curved connection(Define a curved (arc of a circle) connection )
Rounded / curved connection [message #553155] Mon, 16 August 2010 15:11 Go to next message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France
Member
Hi,


I would like to have a curved connection (like an arc of a circle of a given radius).
Can it be done with a polyline connection or should I implement a connection of my own ?

Thanks,
Emil.

Re: Rounded / curved connection [message #553669 is a reply to message #553155] Wed, 18 August 2010 12:36 Go to previous messageGo to next message
Tatiana Fesenko is currently offline Tatiana FesenkoFriend
Messages: 21
Registered: May 2010
Junior Member
Hello Emil!

GMF allows its users to have curved connections like this:
http://wiki.eclipse.org/images/b/b7/CurvedConnection.JPG

This effect is achieved by changing properties of the EditPart in the Properties View. I chose
Tree for Appearance>Routing>Styles and
More for Appearance>Smoothness

You can try other values to achived the needed effect.
These properties are applied in a class
org.eclipse.gmf.runtime.diagram.ui.editparts.ConnectionEditPart
, methods
installRouter()
and
refreshSmoothness() 
respectively. This is a place where you can get an idea how to apply these changes automatically in your code.

Tanya.

[Updated on: Wed, 18 August 2010 12:36]

Report message to a moderator

Re: Rounded / curved connection [message #553676 is a reply to message #553669] Wed, 18 August 2010 13:05 Go to previous message
emil salageanu is currently offline emil salageanuFriend
Messages: 94
Registered: June 2010
Location: Nice, France
Member
Thanks Tatiana for the hint it helped solving the problem.

Cheers,
Emil.

Previous Topic:Force a figure to be sticked to another one (with drag and drop enabled)
Next Topic:Code generation during generation of .gmfgen file
Goto Forum:
  


Current Time: Fri Apr 26 20:35:11 GMT 2024

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

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

Back to the top