Hi, I was wondering if there is a way to get the viewportgraphics
object to draw gradint boxes.

I really need it to draw the legend of a colorramp raster map.

I think graphics2d has a setPaint method to accept:
GradientPaint gradPaint = new GradientPaint(0f, 0f, actualColor, 0f, ybox,
                                nextColor);


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

Reply via email to