private void setBandInfo(DataChoice dataChoice, AddeImageInfo aii) {
        BandInfo bi = (BandInfo) dataChoice.getId();
        List<BandInfo> bandInfos =
            (List<BandInfo>) getProperty(PROP_BANDINFO, (Object) null);
        boolean hasBand = true;
        //If this data source has been changed after we have create a display 
        //then the possibility exists that the bandinfo contained by the incoming
        //data choice might not be valid. If it isn't then default to the first 
        //one in the list
        if (bandInfos != null) {
            hasBand = bandInfos.contains(bi);
            if ( !hasBand) {
                //                                System.err.println("has band = " + bandInfos.contains(bi));
            }
            if ( !hasBand && (bandInfos.size() > 0)) {
                bi = bandInfos.get(0);
            } else {
                //Not sure what to do here.
            }
        }
        aii.setBand("" + bi.getBandNumber());
        aii.setUnit(bi.getPreferredUnit());
    }
private void setBandInfo(DataChoice dataChoice, AddeImageInfo aii) {
        BandInfo bi = (BandInfo) dataChoice.getId();
        List<BandInfo> bandInfos =
            (List<BandInfo>) getProperty(PROP_BANDINFO, (Object) null);
        boolean hasBand = true;
       
       
       
       
        if (bandInfos != null) {
            hasBand = bandInfos.contains(bi);
            if ( !hasBand) {
               
            }
            if ( !hasBand && (bandInfos.size() > 0)) {
                bi = bandInfos.get(0);
            } else {
               
            }
        }
        aii.setBand("" + bi.getBandNumber());
        aii.setUnit(bi.getPreferredUnit());
    }
private void setbandinfo(datachoice datachoice, addeimageinfo aii) { bandinfo bi = (bandinfo) datachoice.getid(); list<bandinfo> bandinfos = (list<bandinfo>) getproperty(prop_bandinfo, (object) null); boolean hasband = true; if (bandinfos != null) { hasband = bandinfos.contains(bi); if ( !hasband) { } if ( !hasband && (bandinfos.size() > 0)) { bi = bandinfos.get(0); } else { } } aii.setband("" + bi.getbandnumber()); aii.setunit(bi.getpreferredunit()); }