Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 111179 - Better SWT support for rotation and transparency.
Summary: Better SWT support for rotation and transparency.
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 2.0.0 M3   Edit
Assignee: Zhiqiang Qian CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 112104
Blocks: 110886
  Show dependency tree
 
Reported: 2005-09-30 00:59 EDT by Morten Moeller CLA
Modified: 2008-06-18 14:41 EDT (History)
0 users

See Also:


Attachments
Picture of SWT device using advanced graphics (111.23 KB, image/png)
2005-09-30 01:01 EDT, Morten Moeller CLA
no flags Details
Patch to org.eclipse.birt.chart.device.extension to add SWT advanced graphics support (15.80 KB, patch)
2005-09-30 01:03 EDT, Morten Moeller CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Morten Moeller CLA 2005-09-30 00:59:44 EDT
I think that since SWT now supports advanced graphics this should be taken
advantage of. It bugs me that design mode doesn't support all rotations and
transparencies I set up.
Comment 1 Morten Moeller CLA 2005-09-30 01:01:07 EDT
Created attachment 27714 [details]
Picture of SWT device using advanced graphics
Comment 2 Morten Moeller CLA 2005-09-30 01:03:08 EDT
Created attachment 27715 [details]
Patch to org.eclipse.birt.chart.device.extension to add SWT advanced graphics support

I already played with the SWT device to add transparency, anti-aliasing and
better text rotation since it bugged me. Feel free to use this or not :)
Comment 3 David Michonneau CLA 2005-10-07 05:58:36 EDT
Thank you for the patch! Zhiqiang will take a look on this.
Comment 4 Zhiqiang Qian CLA 2005-10-24 23:07:50 EDT
Thanks Morten, I've applied your patch to the SWT renderer. The question is, 
the drawArc/fillArc functions in GC doesn't result in the same effect when 
antialias/transparency ability turned on or off, at least under Windows 
platform. So we decide not to use these settings by default unless we can fixed 
this arc issue. Currently, if you do want the advanced features, please add an 
extra argument to your VM options: -DR31ENHANCE, this will then force the 
renderer to run in an advanced mode.
Comment 5 Zhiqiang Qian CLA 2005-11-09 00:48:45 EST
Ditto.
Comment 6 fang xu CLA 2005-12-21 00:45:25 EST
fixed
Comment 7 Morten Moeller CLA 2005-12-21 16:28:24 EST
Sorry been behind on emails I should have answered this earlier :)

Do you have an example that shows the arc issue? I was thinking last time I looked at this the "right" thing todo with a lot of it is probably to use the swt.Path system (which can also solve the rotated gradients etc on SWT). That might eliminate the problem and a lot of complex rendering and calculations can be given to GDI(+). If you don't do it, I might look at that for the June release since it's, I guess, way too late for the January BIRT release :)
Comment 8 Zhiqiang Qian CLA 2005-12-21 21:57:52 EST
You can refer to this bug: bugzilla 112104(https://bugs.eclipse.org/bugs/show_bug.cgi?id=112104) for the arc issue.  It's great if you can find out a better solution. Thanks.
Comment 9 Bjorn Freeman-Benson CLA 2008-06-18 14:41:42 EDT
Comment on attachment 27715 [details]
Patch to org.eclipse.birt.chart.device.extension to add SWT advanced graphics support

per Ganymede IP log