Hi everybody

Lhe last mail concerning Legends on this list, told us that they are not 
supported by geotools2 any more. And that looking at uDig could be a way.

I use SLD-imported Styles.
I am writing a JTree that shall serve as a LegendPanel.
I have a JTreeModel that fills the JTree with the the mapContext's layers and 
their rules... no problem so far.

But i have no clue of how to get a little graphic that represents the 
Rasterizer. The Rule object can be asked for getSymbolizers, but then?

I would like to create a little ImageIcon or alike from the Symbolizer... but 
how?

I checked the udig code, but they are 
a) very interwoven with eclipse
b) their legend is a heavly rendered graphic inside the map
c) I came to Glyph.java, but i didn't really get it when i was reading it 
yesterday.

As a last solution:
I thought about saving tree small shapefiles with one point, one line and one 
polygon and then have lots of MapPanes display them inside the JTree with the 
corresponding style of the rule.. but it somehow doesn't appear so smart to 
me.

So... can it be that nobody is using a legend with geotools?

i would be very thankful for any hints on how to make the Symbolizer render a 
little Icon... 


Thanks in advance

Stefan

-- 
Stefan Krüger
Straßburger Weg 26
53113 Bonn

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to