Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#252 SWTGraphics2D - Add Support for GradientPaint

open
nobody
None
5
2012-11-27
2009-06-09
Kelvin Xu
No

This patch allow SWTGraphics2D to access all function of GradientPaint, just as Swing.

Discussion

  • Kelvin Xu
    Kelvin Xu
    2009-06-09

    2 files including a demo

     
    Attachments
  • Henry Proudhon
    Henry Proudhon
    2009-06-12

    I've review the code which looks well written.
    One thing comes into mind, I recall david wanted to keep the code compatible with SWT 3.2
    Is it the case here ? for instance is the 'gc.setBackgroundPattern' method available in 3.2 ?

     
  • Kelvin Xu
    Kelvin Xu
    2009-06-13

    Sorry, I have not test on SWT 3.2. But according to API document, 'setBackgroundPattern' has been added since 3.1

     
  • Kelvin Xu
    Kelvin Xu
    2009-06-13

    Finally, I just run it on SWT 3.2 for Windows. And it seems with no problem.