Hi Stuart-
Stuart Maclean wrote:
I am using the idv jar for new application development. I have some
contour filled bathy data set up, using the Contour2DDisplayable class.
I want to add a legend, so that the user can tell the depth from the
color table I installed. In trying to use the ColorScale class, I never
see a scale/legend appear in my jframe. I have no idea what to try
next. Attached is the code (it will not compile but should give a hint
as to my intentions)
Any help appreciated
If I compile the code, but comment out the FlatField display
(since I don't have your data), I get a colorbar at the top of
the display.
Does your data completely fill the panel? If so, perhaps the
color scale is obscured by the data display. What happens if
you don't call addDisplayable with the contour display?
Also, what version of the code are you running against?
Don Murray
*************************************************************
Don Murray UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000
(303) 497-8628 Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************