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.

How to link the change to RangeWidget with SelectRangeWidget?

Suppose

RealType vis = RealType.getRealType("VIS");
ScalarMap visMap = new ScalarMap(vis, Display.RGB);
visMap.setRange(-10.0f,10.0f);

ScalarMap visRangeMap = new ScalarMap(vis, Display.SelectRange);
visRangeMap.setRange(-10.0f,10.0f);
.....

JFrame f = new JFrame();

f.getContentPane().add (new RangeWidget(visMap),BorderLayout.NORTH);
f.getContentPane().add (new ColorMapWidget(visMap),BorderLayout.CENTER);

f.getContentPane().add (new
SelectRangeWidget(visRangeMap),BorderLayout.SOUTH);

If I make some change in RangeWidget, i.e. change -10.0f to -5.0f, how
this change be reflected in SelectRangeWidget, that is, the select range
slider will be moved only between -5.0 to 10.0

Thanks,




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