Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.
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: