connection figure antialiasing [message #225678] |
Wed, 01 November 2006 16:25 |
Eclipse User |
|
|
|
Originally posted by: aleksandr_kravets.iwaysoftware.com
Hello,
In GEF Logic example connections (Wires) are as not as rigid as default
PolylineConnection figures - they have some smoothness to them. I've
looked at the code but can't seem to see where this is being set. Does
anyone know how it's done?
thanks,
Alex
|
|
|
Re: connection figure antialiasing [message #225725 is a reply to message #225678] |
Wed, 01 November 2006 21:35 |
Eclipse User |
|
|
|
Originally posted by: aleksandr_kravets.iwaysoftware.com
Aleksandr Kravets wrote:
> Hello,
>
> In GEF Logic example connections (Wires) are as not as rigid as default
> PolylineConnection figures - they have some smoothness to them. I've
> looked at the code but can't seem to see where this is being set. Does
> anyone know how it's done?
>
> thanks,
> Alex
Ah, got it (from Logic example):
ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
if ((getViewer().getControl().getStyle() & SWT.MIRRORED ) == 0)
cLayer.setAntialias(SWT.ON);
|
|
|
|
Re: connection figure antialiasing [message #225741 is a reply to message #225733] |
Wed, 01 November 2006 21:47 |
Eclipse User |
|
|
|
Originally posted by: aleksandr_kravets.iwaysoftware.com
David Cummings wrote:
> The Logic Diagram example enables antialiasing for its connection layer
> in the LogicDiagramEditPart#refreshVisuals method.
>
> David
>
> Aleksandr Kravets wrote:
>> Hello,
>>
>> In GEF Logic example connections (Wires) are as not as rigid as
>> default PolylineConnection figures - they have some smoothness to
>> them. I've looked at the code but can't seem to see where this is
>> being set. Does anyone know how it's done?
>>
>> thanks,
>> Alex
Right, found it in the code.
By the way
org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnection Ex, says
that it provides smoothness and support avoid obstructions. So, does it
do similar to what Layers do in Logic example?
Alex
|
|
|
Re: connection figure antialiasing [message #225764 is a reply to message #225741] |
Wed, 01 November 2006 23:23 |
Xiang Qinxian Messages: 119 Registered: July 2009 |
Senior Member |
|
|
Hi,
Aleksandr Kravets 写道:
> David Cummings wrote:
>> The Logic Diagram example enables antialiasing for its connection
>> layer in the LogicDiagramEditPart#refreshVisuals method.
>>
>> David
>>
>> Aleksandr Kravets wrote:
>>> Hello,
>>>
>>> In GEF Logic example connections (Wires) are as not as rigid as
>>> default PolylineConnection figures - they have some smoothness to
>>> them. I've looked at the code but can't seem to see where this is
>>> being set. Does anyone know how it's done?
>>>
>>> thanks,
>>> Alex
> Right, found it in the code.
> By the way
> org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnection Ex, says
> that it provides smoothness and support avoid obstructions. So, does it
> do similar to what Layers do in Logic example?
We can use directly PolylineConnectionEx in gef editor, with a similar
behavior, but newest version is best.
>
> Alex
By the way, For all FC6 users, setAntialias function not works in AMD64.
SWT seems no wills to resolve it in short time .
Regards,
Qinxian
|
|
|
Powered by
FUDForum. Page generated in 0.03707 seconds