Jody Garnett ha scritto: > Hi Andrea - > > I am looking forward to this one (and we can make it the default in uDig > trunk so it gets some eyeball time in front of developers - we actually > have a code sprint coming up and are releasing an alpha to generate bugs > reports leading up to it). > > I am getting a bit tired of active words in package names "renderer" and > "labeler" ... making a "renderer.labler" hyper active? so for package > org.geotools.renderer.label would be fine.
I don't see what's wrong with a verb in a package name but ok, label it is. > LabelCacheImpl would copy > what the other implementations are doing; but you are correct these > classes are not really going to be public facing (so remove the prefix). So so... the renderer accepts a hint for the label cache implementation, that's what allowed me to plug it into GeoServer without changing the renderer code, I already had the extension point I needed. > There is one annoying bit of work that I would like to request - even if > you can just tell me how to do it. Jesse started to look into this one > but got busy. In uDig we have a problem with labels "floating to the > top" and appearing over top over other map graphics like scalebars and > legends. I would like a method to to be able to "reserve" an rectangle > on the screen and let the labeller know that it is already full up. Labels are drawn last on a map, when you call the end() method on the label cache. So if your elements are opaque you can just call end() before drawing the decorations. Anyways yes, I can add a method to reserve one or more rectangles, we just need to add them to the drawn labels index before starting to draw the actual labels. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
