Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Edge size not applied to decorators
Edge size not applied to decorators [message #1721253] Tue, 26 January 2016 08:00 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi all,

if I apply a size computation expression like 5 to an edge style this
affects the line width, but not the decorators.

Should I report this as a bug or is this on purpose?
Any way to apply the size to decorators, too?

Axel
Re: Edge size not applied to decorators [message #1721312 is a reply to message #1721253] Tue, 26 January 2016 14:15 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

Le 26/01/2016 09:00, Axel Guckelsberger a écrit :
> Hi all,
>
> if I apply a size computation expression like 5 to an edge style this
> affects the line width, but not the decorators.
>
> Should I report this as a bug or is this on purpose?

The size computation expression is also applied on the decorators. I've
joined an example (edgeSizeSample.zip). Is this example OK for you?

> Any way to apply the size to decorators, too?
>
> Axel
>

Regards,

--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Edge size not applied to decorators [message #1721316 is a reply to message #1721312] Tue, 26 January 2016 15:05 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi Laurent,

thank you. Indeed the decorator is enlarged, too.

What I need to achieve is having larger decorators relative to the
edge's stroke width. Please see the attached screenshot for an example.

Would it maybe possible to define an additional decorator type for this?

Best regards,

Axel


Am 26.01.2016 um 15:15 schrieb Laurent Redor:
> Hi,
>
> Le 26/01/2016 09:00, Axel Guckelsberger a écrit :
>> Hi all,
>>
>> if I apply a size computation expression like 5 to an edge style this
>> affects the line width, but not the decorators.
>>
>> Should I report this as a bug or is this on purpose?
>
> The size computation expression is also applied on the decorators. I've
> joined an example (edgeSizeSample.zip). Is this example OK for you?
>
>> Any way to apply the size to decorators, too?
>>
>> Axel
>>
>
> Regards,
>
Re: Edge size not applied to decorators [message #1721330 is a reply to message #1721316] Tue, 26 January 2016 16:00 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Le 26/01/2016 16:05, Axel Guckelsberger a écrit :
> Hi Laurent,
>
> thank you. Indeed the decorator is enlarged, too.
>
> What I need to achieve is having larger decorators relative to the
> edge's stroke width. Please see the attached screenshot for an example.
>
> Would it maybe possible to define an additional decorator type for this?

No there is currently no way to do that.
For information, these decorators are handled by
org.eclipse.sirius.diagram.ui.edit.internal.part.DiagramEdgeEditPartOperation.createArrowDecoration(IDiagramEdgeEditPart,
EdgeArrows).

You can create an enhancement [1] to consider the size of the edge when
creating the decorators.

There is already an issue for providing their own decorator: [2].
Nevertheless, we have currently not planned to work on it in the
following releases.


[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
[2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=484508

>
> Best regards,
>
> Axel
>
>
> Am 26.01.2016 um 15:15 schrieb Laurent Redor:
>> Hi,
>>
>> Le 26/01/2016 09:00, Axel Guckelsberger a écrit :
>>> Hi all,
>>>
>>> if I apply a size computation expression like 5 to an edge style this
>>> affects the line width, but not the decorators.
>>>
>>> Should I report this as a bug or is this on purpose?
>>
>> The size computation expression is also applied on the decorators. I've
>> joined an example (edgeSizeSample.zip). Is this example OK for you?
>>
>>> Any way to apply the size to decorators, too?
>>>
>>> Axel
>>>
>>
>> Regards,
>>
>


--
Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Edge size not applied to decorators [message #1721334 is a reply to message #1721330] Tue, 26 January 2016 16:11 Go to previous message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
I've added 486588 for this.


Am 26.01.2016 um 17:00 schrieb Laurent Redor:
> Le 26/01/2016 16:05, Axel Guckelsberger a écrit :
>> Hi Laurent,
>>
>> thank you. Indeed the decorator is enlarged, too.
>>
>> What I need to achieve is having larger decorators relative to the
>> edge's stroke width. Please see the attached screenshot for an example.
>>
>> Would it maybe possible to define an additional decorator type for this?
>
> No there is currently no way to do that.
> For information, these decorators are handled by
> org.eclipse.sirius.diagram.ui.edit.internal.part.DiagramEdgeEditPartOperation.createArrowDecoration(IDiagramEdgeEditPart,
> EdgeArrows).
>
> You can create an enhancement [1] to consider the size of the edge when
> creating the decorators.
>
> There is already an issue for providing their own decorator: [2].
> Nevertheless, we have currently not planned to work on it in the
> following releases.
>
>
> [1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
> [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=484508
>
>>
>> Best regards,
>>
>> Axel
>>
>>
>> Am 26.01.2016 um 15:15 schrieb Laurent Redor:
>>> Hi,
>>>
>>> Le 26/01/2016 09:00, Axel Guckelsberger a écrit :
>>>> Hi all,
>>>>
>>>> if I apply a size computation expression like 5 to an edge style this
>>>> affects the line width, but not the decorators.
>>>>
>>>> Should I report this as a bug or is this on purpose?
>>>
>>> The size computation expression is also applied on the decorators. I've
>>> joined an example (edgeSizeSample.zip). Is this example OK for you?
>>>
>>>> Any way to apply the size to decorators, too?
>>>>
>>>> Axel
>>>>
>>>
>>> Regards,
>>>
>>
>
>
Previous Topic:Style customization for edge stroke colour
Next Topic:Layer usage in Sirius introduction video
Goto Forum:
  


Current Time: Thu Mar 28 09:36:43 GMT 2024

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

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

Back to the top