Here is something from ScalebarMapGraphic:
Rectangle location = getGraphicLocation(context);
// reserve this area of the screen so labels are not drawn here
context.getLabelPainter().put( location );
Hope it helps?
--
Jody Garnett
On Thursday, 22 December 2011 at 12:38 AM, Elena Pechko wrote:
> Thank you, Jody.
>
> Can you please give me a hint which method should I call or point me to the
> code snippet?
>
> Regards, Elena
>
> On 21.12.2011 16:50, Jody Garnett wrote:
> > This problem was fixed by asking map graphics (such as legend) to reserve
> > their area of screen with the label cache. That when the label cache draws;
> > it knows to avoid the reserved areas.
> >
> > Emily has recently done some work on label cache (to allow for better
> > integration with her tiled rendering system). So checking that this
> > functionality is still working as intended would be a good move.
> >
> > --
> > Jody Garnett
> >
> >
> > On Wednesday, 21 December 2011 at 11:19 PM, Elena Pechko wrote:
> >
> > > Hello list!
> > >
> > > We are using uDIg 1.1.1 and faced with the problem that shapefile labels
> > > (e.g. city names) are on top of the legend even if the legend is the top
> > > layer.
> > >
> > > I found only this old post discussing the transparency problem:
> > > http://udig-devel.19327.n5.nabble.com/Legend-transparency-td25395.html.
> > >
> > > How can we change such behaviour programmatically and make the legend
> > > really on top of all layers?
> > >
> > > Thank you in advance for any advice.
> > >
> > > Regards, Elena
> > >
> > >
> > >
> > > _______________________________________________
> > > 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