Examples of Station


Examples of model.Station

   *
   * @param station la station concernée par le clic droit
   */
  public void setStation(Station station)
  {
    this.temp = new Station();
    temp.setName(station.getName());
    temp2.setName(station.getName());
  }
View Full Code Here

Examples of model.Station

    if(temp==null)
    {
      errorPopup("noStation");
      return;
    }
    temp=new Station(temp);
   
    //Récupère la position de la station dans la liste de stations
    positionInList=controller.positionInListStation(temp);
   
    //Champ de texte modifiable contenant le nom de la station
View Full Code Here

Examples of model.Station

    //Si l'utilisateur a cliqué sur le bouton "Valider et continuer" ou "Finaliser"
    if (r == JOptionPane.YES_OPTION || r == JOptionPane.NO_OPTION)
    {
      if(r == JOptionPane.YES_OPTION)
      {
        Station tempStation = new Station();
       
        //Vérifie qu'il y a bien une station de sélectionnée
        if(stationToAdd.getSelectedItem()==null)
        {
          errorPopup("noStationToAdd");
          return;
        }
       
        tempStation.setName(stationToAdd.getSelectedItem().toString());
       
        tempStation=controller.copyStation(tempStation);
       
        //Vérifie que la station existe
        if(tempStation==null)
View Full Code Here

Examples of model.Station

   * @return une matrice de double
   */
  public double[][] getMaxMinCoordinate(){
    double toReturn[][] = new double[2][2];
   
    Station allStations[] = this.getStations();
   
    int size = allStations.length;
    double minLon, minLat, maxLon, maxLat;
   
    //S'il y a des stations
View Full Code Here

Examples of model.Station

   
    JComboBox terminus2 = new JComboBox();
    AutoCompleteSupport support2 = AutoCompleteSupport.install(
            terminus2, GlazedLists.eventListOf(stations));

    Station station1 = new Station();
    Station station2 = new Station();
   
    //Message contenant deux chaînes de caractères et les deux listes déroulantes
    Object[] message = new Object[] { "Station de départ : ", terminus1,
        "Station d'arrivée : ", terminus2 };
   
    //Lance la pop-up de modification contenant le message
    int r = JOptionPane.showConfirmDialog(null, message,
        "Ajouter des terminus", JOptionPane.OK_CANCEL_OPTION);
   
    //Si l'utilisateur a cliqué sur le bouton "OK"
    if (r == JOptionPane.OK_OPTION) {
      station1.setName(terminus1.getSelectedItem().toString());
      station2.setName(terminus2.getSelectedItem().toString());
      station1=controller.copyStation(station1);
      station2=controller.copyStation(station2);
      if(station1!=null && station2!=null)
      {
      temp.getStations().add(station1);
View Full Code Here

Examples of model.Station

    Choice period = new Choice();
    period.addItem("Semaine");
    period.addItem("Week-end");
   
    Line tempLine = new Line();
    Station tempStation = new Station();
   
    //Crée un message contenant des chaînes de caractères et les listes déroulantes
    Object[] message = new Object[] { "Ligne : ", line,
        "Station : ", station, "Période : " , period};
   
    //Crée la pop-up contenant le message
    int r = JOptionPane.showConfirmDialog(null, message,
        "Ajouter des horaires", JOptionPane.OK_CANCEL_OPTION);
   
    //Si l'utilisateur a cliqué sur le bouton "OK"
    if (r == JOptionPane.OK_OPTION) {
      tempLine.setName(line.getSelectedItem().toString());
      tempStation.setName(station.getSelectedItem().toString());
     
      if(period.getSelectedItem()=="Semaine")
        numberPeriod=0;
      else
        numberPeriod=1;
View Full Code Here

Examples of model.Station

      init = false;
    }

    g.setColor(new Color(0xFF, 0x0, 0x0));

    Station stations[] = controller.getStations();
    int size = stations.length;

    Line lines[] = controller.getLines();
    int lsize = lines.length;
View Full Code Here

Examples of net.sf.xtvdclient.xtvd.datatypes.Station

      soapRequest.getData(start, end, xtvd);

      Map<Integer, Station> stations = xtvd.getStations();

      for (final Entry<Integer, Station> entry : stations.entrySet()) {
        final Station station = entry.getValue();
        allChannels.add(
                new Channel(this, station.getName(), Integer.toString(station.getId()), TimeZone.getTimeZone("UTC"), "US", "(c) SchedulesDirect", "", mChannelGroup, null, Channel.CATEGORY_TV)
        );
      }

    } catch (DataDirectException e) {
      e.printStackTrace();
View Full Code Here

Examples of thredds.catalog.query.Station

            return null;
          }
          if (stations.size() == 0)
            return null;

          Station s =  (Station) stations.get(0);
          LatLonPointImpl llpt = new LatLonPointImpl();
          llpt.set( s.getLocation().getLatitude(), s.getLocation().getLongitude());
          rect = new LatLonRect(llpt, .001, .001);

          for (int i = 1; i < stations.size(); i++) {
            s =  (Station) stations.get(i);
            llpt.set( s.getLocation().getLatitude(), s.getLocation().getLongitude());
            rect.extend( llpt);
          }
        }

        return rect;
View Full Code Here

Examples of thredds.catalog.query.Station

    public List getStations(LatLonRect boundingBox, CancelTask cancel) throws IOException {
        LatLonPointImpl latlonPt = new LatLonPointImpl();
        ArrayList result = new ArrayList();
        List stationC = radarCollection.getStations();
        for (int i = 0; i < stationC.size(); i++) {
          Station s =  (Station) stationC.get(i);
          latlonPt.set( s.getLocation().getLatitude(), s.getLocation().getLongitude());
          if (boundingBox.contains( latlonPt))
            result.add( s);
          if ((cancel != null) && cancel.isCancel()) return null;
        }
        return result;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.