Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323021

Summary: Implement GC#setAntialias and #setTextAntialias
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: austin.riddle, ruediger.herrmann
Version: 1.4   
Target Milestone: 1.5 M3   
Hardware: All   
OS: All   
Whiteboard:

Description Holger Staudacher CLA 2010-08-18 09:36:37 EDT
setAntialias is missed on GC. But currently we always render antialiased graphics on the client. So, I would suggest to implement this method empty. This would increase the single sourcing capabilities of the GC.
Comment 1 Ivan Furnadjiev CLA 2010-08-23 04:33:51 EDT
There are three antialias modes - SWT.DEFAULT, SWT.OFF, SWT.ON. Implementing GC#setAntialias(int) method as NOP will break it, as SWT.OFF mode will not turn off the antialiasing. There is no problem with GC#getAntialias() to always return SWT.DEFAULT or SWT.ON.
Comment 2 RĂ¼diger Herrmann CLA 2011-10-04 10:11:49 EDT
I think, for the sake of single-sourcing, we should ignore that fact that antialiasing cannot be turned off. The same applies to GC#setTextAntialias().
Any objections?
Comment 3 Austin Riddle CLA 2011-10-04 10:31:44 EDT
(In reply to comment #2)
> I think, for the sake of single-sourcing, we should ignore that fact that
> antialiasing cannot be turned off. The same applies to GC#setTextAntialias().
> Any objections?

+1
Comment 4 RĂ¼diger Herrmann CLA 2011-10-05 03:53:06 EDT
Introduced get/setAntialias(), get/setTextAntialias() on GC. Changes are in CVS HEAD.