/** * Set the trajectory. * * @param trajectory : obtain list of PointObsDatatype objects from here * @throws java.io.IOException on read error */ public void setTrajectory(TrajectoryObsDatatype trajectory) throws IOException { int n = trajectory.getNumberPoints(); obsUIlist = new ArrayList<ObservationUI>(n); for (int i = 0; i < n; i++) { PointObsDatatype obs = trajectory.getPointObsData(i); ObservationUI sui = new ObservationUI(obs); // wrap in a StationUI obsUIlist.add(sui); // wrap in a StationUI } posWasCalc = false; calcWorldPos(); selected = null; }