Hi right now you have to cast to a SWTGraphics and then use the getGC() method.

Jesse

Le 25-Jan-08 à 9:34 AM, andrea antonello a écrit :

Thanks for the answers, but I guess I didn't explain myself properly.
I do not need hints on how to create swt graphics gradients, but how
to do it with the Viewportgraphic, which has only a setColor method
and works with java2d methods.

You guys mean I can override the java2d behaviour and go with swt?

Andrea

On Jan 25, 2008 6:24 PM, Benjamin CABÉ <[EMAIL PROTECTED] tech.com> wrote:
Hello,

Jody Garnett a écrit :

I found this with quick search:
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg25358.html

See also these two snippets :
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet280.java
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet281.java

Regards,
Benjamin

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel

Reply via email to