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] Wed, 30 November 2011 20: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 03:50 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
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 12: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 03:57 Go to previous messageGo to next message
Michael Wenz is currently offline Michael Wenz
Messages: 1574
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 12: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 18: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 Jul 29 13:10:14 EDT 2014

Powered by FUDForum. Page generated in 0.02153 seconds