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.
Hi Kevin, > Well, I have an array of Irregular2DSets. I want to give each set a > different color. I then want to be able to toggle on and off the > collection of Irregular2DSets at the same time. > > I'm sure that I can loop through the array of Iregular2DSets, and their > associated DataReferences/DataRenderers and turn each one off > individually, but I would like to do turn the array off and on in one > step instead of a loop. Is there a way to do this elegantly (i.e. w/o a > loop)? Is there and example? Sure. Combine all your Sets in a FieldImpl with MathType something like (index -> (r, g, b, Set(x, y))). Each Set has a different color, and you can toggle the whole thing on and off in one step. Good luck, Bill
visad
archives: