Home » Eclipse Projects » Sirius » Edge size not applied to decorators
Edge size not applied to decorators [message #1721253] |
Tue, 26 January 2016 03:00  |
Eclipse User |
|
|
|
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 #1721316 is a reply to message #1721312] |
Tue, 26 January 2016 10:05   |
Eclipse User |
|
|
|
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 11:00   |
Eclipse User |
|
|
|
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
|
|
|
Re: Edge size not applied to decorators [message #1721334 is a reply to message #1721330] |
Tue, 26 January 2016 11:11  |
Eclipse User |
|
|
|
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,
>>>
>>
>
>
|
|
|
Goto Forum:
Current Time: Thu Jul 17 11:07:55 EDT 2025
Powered by FUDForum. Page generated in 0.19027 seconds
|