Right now the geotools gt-swing module has an example that renders into one buffered image. If you want to repaint only a single layer you will need to make your own code that has several buffered images (each of which with a StreamingRenderer to populate it).
This is a good approach; one we use in the uDig project (in order to only render one image).
If you could join the geotools user list for these sorts of questions it would be a good help. As with many developers we tend to keep direct email for our customers; by using the email list others get a chance to reply to your question and share tips.
On Thursday, 26 May 2011 at 2:55 PM, ayesh.don@... wrote:
> i had problem with repaint layer in geotools Java. the problem is in my application i was added mapgrid to layer index 0 and map to layer index 1.Then other shapes(rectangle,circle and polygon) added to separate layers. so then i did move that shape layer but problem was that time all the layer are repaint.
> i want to repaint only selected layer.would you know how to do that..
> thank you
> ayesh don