Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Double line Polyline for Connections
Double line Polyline for Connections [message #1385210] Wed, 04 June 2014 22:01 Go to next message
Robert Brodt is currently offline Robert Brodt
Messages: 578
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi all,

Is there any way to create a Connection whose GA is two parallel Polylines, similar to the ones shown here:

http://content.screencast.com/users/rbrodt/folders/Jing/media/40de9621-4b8d-4554-9c43-ffde050b7da4/2014-06-04_1957.png

I've tried creating two Polylines, a wide one in black, and a narrow one in white on top of it, but that failed miserably.

Any suggestions would be welcomed!

Bob
Re: Double line Polyline for Connections [message #1385824 is a reply to message #1385210] Wed, 11 June 2014 08:25 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Bob,

unfortunately, the line styles Graphiti supports are rather limited because
GEF's line style support does not offer more (besides custom, which means
building it yourself...).

For now I see only the possibility to draw 2 connection lines in parallel,
but I'm not sure if that will work...

A future alternative could be to build that into the Graphiti framework
itself, but that could be a lot of effort and I'm not sure when we will get
to that. Anyhow, please file an enhancement bug in case you would like that
feature.

Michael
Re: Double line Polyline for Connections [message #1391777 is a reply to message #1385824] Tue, 01 July 2014 07:51 Go to previous messageGo to next message
Robert Brodt is currently offline Robert Brodt
Messages: 578
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi Michael, and thanks for your reply.

As I mentioned in my original post, I tried drawing two lines on top of each other - an 8 pixel line in black and a 4 pixel line in white. This should result in the desired result, but it looks like Graphiti is not designed to support child GAs for Connections. How difficult would it be to add this functionality?

Thanks,
Bob
Re: Double line Polyline for Connections [message #1393248 is a reply to message #1391777] Thu, 03 July 2014 09:38 Go to previous message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Bob,

Graphiti does not offer this at the API, but it should be possible to add a
new connection type (or enhance the freeform connection to allow that)
relatively straight forward on GEF level.

Without looking into the details, I'd guess for someone with some GEF
knowledge it should not be a big matter. Supporting bendpoints correctly
might be somewhat more tricky and doing correct interpolation/rounding also.
It's hard to nail down to concrete effort numbers...

Michael
Previous Topic:Graphiti plugin project with maven-tycho
Next Topic:Background on rotated text
Goto Forum:
  


Current Time: Tue Jul 29 02:41:09 EDT 2014

Powered by FUDForum. Page generated in 0.06157 seconds