Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » ConnectionDecorator on top of Connection
ConnectionDecorator on top of Connection [message #760028] Thu, 01 December 2011 01:30 Go to next message
Patrick Talbot is currently offline Patrick Talbot
Messages: 36
Registered: November 2011
Member
Is doesn't seem to be possible to have ConnectionDecorator to draw on top of Connection lines. Most of the time if you have a Text decorator that is added, the line will go on top of it, rendering the text unlegible.

Is there a way to have ConnectionDecorator on top of lines or should I create a feature request for this?
Re: ConnectionDecorator on top of Connection [message #760075 is a reply to message #760028] Thu, 01 December 2011 08:50 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1618
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Currently there's no way to do that, that's due to the more general Graphiti
paradigm that connections always render on top of any shapes. This would not
be impossible to change but would be a large thing... Nevertheless, feel
free to open an enhancement request for that.

Michael
Re: ConnectionDecorator on top of Connection [message #760250 is a reply to message #760075] Thu, 01 December 2011 17:06 Go to previous messageGo to next message
Patrick Talbot is currently offline Patrick Talbot
Messages: 36
Registered: November 2011
Member
I really believe that it's a problem: right now Text ConnectionDecorator are pretty much unusable because of this behavior.

I've opened a feature request: #365338

Is there really no workaround in the meantime, maybe using plain GEF?
Re: ConnectionDecorator on top of Connection [message #760383 is a reply to message #760250] Fri, 02 December 2011 08:57 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1618
Registered: July 2009
Location: Walldorf, Germany
Senior Member
You might try using a PlatformGraphicsAlgorithm (Graphiti's possibility to
directly embed native GEF shapes) for your connection decorator. But I'm not
sure if that will work...

Michael
Re: ConnectionDecorator on top of Connection [message #760534 is a reply to message #760383] Fri, 02 December 2011 17:58 Go to previous messageGo to next message
Patrick Talbot is currently offline Patrick Talbot
Messages: 36
Registered: November 2011
Member
OK, thanks! I'll try that...
Re: ConnectionDecorator on top of Connection [message #765377 is a reply to message #760534] Tue, 13 December 2011 23:40 Go to previous message
Patrick Talbot is currently offline Patrick Talbot
Messages: 36
Registered: November 2011
Member
I've tried implementing a Decorator using a PlatformAlgorithmn, but the connection line still draws on top of it.
I don't see how this could be done unless you're suggesting to use a PlatformAlgotithmn for the whole Connection (including lines and decorators)?
Previous Topic:Direct Editing with TYPE_MULTILINETEXT
Next Topic:Drop on shape using IMoveFeature
Goto Forum:
  


Current Time: Tue Oct 21 21:45:21 GMT 2014

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

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