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.
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,
visad
archives: