NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
OLVER OLFREY HERNANDEZ NAVARRO wrote: > > Hi all. > > I need that two ScalarMap had the same ColorMapWidget, it's possible??? > I need that both had the same Color always. Hi Olver, That's not possible, but you can do the same thing by constructing ControlListeners for the ColorControls for your two ScalarMaps to RGB, and having each update the other (be careful to avoid an event loop, by not calling setTable() on a ColorControl if the array you would pass it is equal to its current color table. You can see an example in visad/rabin/Rain.java, for linking multiple ProjectionControls. Same basic idea. Good luck, Bill
visad
archives: