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.

ADD or remove any one ScalarMap

 Hi Sir:

    After test some examples in VISAD class.
    I have question about the VISAD. Can we add a switch or
eventlistener to change , remove or    add the the new
ScalarMap in program?

 example :

  If I alreadly have three baisc ScarlarMaps:

     dpys[0].addMap(new ScalarMap(RealType.Latitude,
Display.YAxis));
     dpys[0].addMap(new ScalarMap(RealType.Longitude,
Display.XAxis));
     dpys[0].addMap(new ScalarMap(RealType.Radius,
Display.IsoContour));

 I want remove the last one after click one button(on UI) .

     dpys[0].addMap(new ScalarMap(RealType.Radius,
Display.IsoContour));

 or add new one after click another button.

    dpys[0].addMap(new ScalarMap(RealType.Radius,
Display.Red));


  If there is some method to do this, please tell me. Thanks



  shinta


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