ui/src/main/java/ucar/nc2/ui/point/StationRenderer.java
public void setStations(java.util.List<ucar.unidata.geoloc.Station> stns) {
    stations = new ArrayList<StationUI>( stns.size());
    stationHash.clear();
    for (int i = 0; i < stns.size(); i++) {
      ucar.unidata.geoloc.Station s = (ucar.unidata.geoloc.Station) stns.get(i);
      StationUI sui = new StationUI( s); // wrap in a StationUI
      stations.add(sui); // wrap in a StationUI
      stationHash.put( s.getName(), sui);
    }
    posWasCalc = false;
    calcWorldPos();
  }
public void setStations(java.util.List<ucar.unidata.geoloc.Station> stns) {
    stations = new ArrayList<StationUI>( stns.size());
    stationHash.clear();
    for (int i = 0; i < stns.size(); i++) {
      ucar.unidata.geoloc.Station s = (ucar.unidata.geoloc.Station) stns.get(i);
      StationUI sui = new StationUI( s); // wrap in a StationUI
      stations.add(sui); // wrap in a StationUI
      stationHash.put( s.getName(), sui);
    }
    posWasCalc = false;
    calcWorldPos();
  }
public void setStations ( java . util . List < ucar . unidata . geoloc . Station > stns ) { stations = new ArrayList < StationUI > ( stns . size ( ) ) ; stationHash . clear ( ) ; for ( int i = 0 ; i < stns . size ( ) ; i ++ ) { ucar . unidata . geoloc . Station s = ( ucar . unidata . geoloc . Station ) stns . get ( i ) ; StationUI sui = new StationUI ( s ) ; // wrap in a StationUI stations . add ( sui ) ; // wrap in a StationUI stationHash . put ( s . getName ( ) , sui ) ; } posWasCalc = false ; calcWorldPos ( ) ; }
Set the list of stations.
@param stns: list of DDStation objects
Set the list of stations .