Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323021 - Implement GC#setAntialias and #setTextAntialias
Summary: Implement GC#setAntialias and #setTextAntialias
Status: CLOSED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-18 09:36 EDT by Holger Staudacher CLA
Modified: 2011-10-05 03:54 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.