Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Lines in Figure objects are not straight lines but having jerks
Lines in Figure objects are not straight lines but having jerks [message #649255] Tue, 18 January 2011 12:10 Go to next message
Deepak Singla is currently offline Deepak Singla
Messages: 27
Registered: December 2009
Junior Member
Hi All,

I am trying to create the a figure having diamond shape. but when I try to create the figure with the help of draw2d, the figure is created but lines (diagonal ) lines are not exact straight lines. it has lot of jerks (zig zag style). but if draw a staright line, it coming gud.

can you please help me what to use so that I can get staright line while creating the figure like diamond etc having diagonal lines.

Any help would be appericiated.

Thanks,
Deepak Singla

[Updated on: Tue, 18 January 2011 12:12]

Report message to a moderator

Re: Lines in Figure objects are not straight lines having jerks [message #650856 is a reply to message #649255] Wed, 26 January 2011 21:55 Go to previous message
Eclipse User
Originally posted by: tmicko.gmail.com

try to turn on antialiasing on graphics object, with which you are
drawing diamond figure.

see Graphics.setAntialias(SWT.ON);


Dňa 18. 1. 2011 13:10, Deepak Singla wrote / napísal(a):
> Hi All,
>
> I am trying to create the a figure having diamond shape. but when I try
> to create the figure with the help of draw2d, the figure is created but
> lines (diagonal ) lines are not exact straight lines. it has lot of
> jerk. but if draw a staright line, it coming gud.
>
> can you please help me what to use so that i can get staright line while
> creating the figure like diamond etc having diagonal lines.
>
> Any help would be appericiated.
>
> Thanks,
> Deepak Singla
Previous Topic:Invoking a Direct Edit Action
Next Topic:PDE Incubator Dependency Visualization
Goto Forum:
  


Current Time: Sat Sep 20 00:14:44 GMT 2014

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

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