Legend widget


Has anyone written a legend-widget, i.e. a widget which extracts the
colour table from the LabeledRGBWidget, prints the max and min values of
the map it's attached to and also has a string for the units?

Such a widget would be very useful to put on top of a display
(especially if one needs to produce screenshots of it).

There are more complicated issues like when one wants to use a colour
table with discrete values. This legend-widget would then need to
include all those values.

I've tried to extract the colour table from the LabeledRGBWidget, but it
came with the colour distribution lines (which are sometimes not really
relevant). I'm also no Java expert :-)

Anyone out there with the same needs?



  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: