Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » connection figure antialiasing
connection figure antialiasing [message #225678] Wed, 01 November 2006 16:25 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #225733 is a reply to message #225678] Wed, 01 November 2006 21:34 Go to previous messageGo to next message
David Cummings is currently offline David CummingsFriend
Messages: 8
Registered: July 2009
Junior Member
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
Re: connection figure antialiasing [message #225741 is a reply to message #225733] Wed, 01 November 2006 21:47 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Xiang Qinxian is currently offline Xiang QinxianFriend
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
Previous Topic:Suppress PropertySheet Undo/Redo
Next Topic:[Announce] GEF 3.3 Project Plans
Goto Forum:
  


Current Time: Mon Oct 18 23:09:04 GMT 2021

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

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

Back to the top