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 .