From: <fa...@us...> - 2008-09-25 15:22:25
|
Revision: 3983 http://fudaa.svn.sourceforge.net/fudaa/?rev=3983&view=rev Author: fargeix Date: 2008-09-25 15:22:17 +0000 (Thu, 25 Sep 2008) Log Message: ----------- Am?\195?\169lioration des interfaces de lecture des r?\195?\169sultats Modified Paths: -------------- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Implementation.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatGenerationBateaux.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteGeneraleCategories.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteGeneraleElement.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteTrajet.java trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsDureesParcours.java Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Implementation.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Implementation.java 2008-09-25 15:22:02 UTC (rev 3982) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3Implementation.java 2008-09-25 15:22:17 UTC (rev 3983) @@ -696,14 +696,14 @@ r.addMenuItem("Historique", "HISTORIQUETABLEAU", FudaaResource.FUDAA.getIcon("crystal_arbre"), false); - r.addMenuItem("Dur\xE9es de parcours", "GRAPHEDUREEPARCOURS", FudaaResource.FUDAA.getIcon("crystal_arbre"), false); + r.addMenuItem("Dur\xE9es de parcours", "GRAPHEDUREEPARCOURS", FudaaResource.FUDAA.getIcon("crystal_graphe"), false); //r4.addMenuItem("Occupations globales", "TABLEAUOCCUPGLOBAL", FudaaResource.FUDAA.getIcon("crystal_arbre"), false); //r4.addMenuItem("Occupations par quais", "TABLEAUOCCUPQUAI", FudaaResource.FUDAA.getIcon("crystal_graphe"), false); r5.addMenuItem("Attentes par \xE9l\xE9ment", "ATTENTEGENERALESELEMENTTABLEAU", FudaaResource.FUDAA .getIcon("crystal_graphe"), false); - r5.addMenuItem("Attentes par bateau", "ATTENTEGENERALESCATEGORIETABLEAU", FudaaResource.FUDAA + r5.addMenuItem("Attentes par cat\xE9gorie de bateaux", "ATTENTEGENERALESCATEGORIETABLEAU", FudaaResource.FUDAA .getIcon("crystal_graphe"), false); r5.addMenuItem("Attentes par trajet", "ATTENTESPECIALISEE", FudaaResource.FUDAA.getIcon("crystal_graphe"), false); r.addSubMenu(r5, false); Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatGenerationBateaux.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatGenerationBateaux.java 2008-09-25 15:22:02 UTC (rev 3982) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatGenerationBateaux.java 2008-09-25 15:22:17 UTC (rev 3983) @@ -104,7 +104,7 @@ ChartPanel histo3d_; - String titreTableau_[] = { "Cat\xE9gorie", "Nombre de bateaux" }; + String titreTableau_[] = { "Cat\xE9gorie", "Nombre de bateaux g\xE9n\xE9r\xE9s" }; /** * Panel tabbed qui g\xE8re les 2 onglets, ie les 2 versions d'affichage des r\xE9sultats: @@ -117,6 +117,11 @@ BuPanel panelGestionTableau_ = new BuPanel(); /** + * Panel cniotenant le camembert + */ + BuPanel panelCamembert_ = new BuPanel(new BorderLayout()); + + /** * panel de gestion du tableau et des diff\xE9rents boutons */ BuPanel panelTableau_ = new BuPanel(); @@ -132,6 +137,11 @@ BuPanel optionPanel_ = new BuPanel(); /** + * Panel de gestion des boutons du camembert + */ + BuPanel controlPanelCamembert_ = new BuPanel(); + + /** * Panel de gestion des boutons des courbes */ BuPanel controlPanelCourbes_ = new BuPanel(); @@ -159,14 +169,15 @@ /** * buoton de generation des resultats */ - private final BuButton exportationExcel_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Excel"); + private final BuButton exportationExcel_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); - final BuButton exportationgraphe_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "exportation image"); + final BuButton exportationgraphe_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); - final BuButton exportationHisto_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "exportation image"); - private final BuButton quitter_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); - private final BuButton quitter2_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); - private final BuButton quitter3_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); + final BuButton exportationHisto_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); + private final BuButton quitter_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton quitter2_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton quitter3_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton quitter4_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); Border raisedBevel_ = BorderFactory.createRaisedBevelBorder(); Border loweredBevel_ = BorderFactory.createLoweredBevelBorder(); @@ -181,7 +192,7 @@ * constructeur de la sous fenetre de gestion des resultats: */ Sinavi3ResultatGenerationBateaux(final Sinavi3DataSimulation _donnees) { - super("Generation bateaux", true, true, true, true); + super("Bateaux g\xE9n\xE9r\xE9s", true, true, true, true); // recuperation des donn\xE9es de la simulation donnees_ = _donnees; @@ -208,16 +219,13 @@ - //-- creation des camemberts --// - camembert_= creerCamembert(); - - + //-- creatiion de l'histo 3d --// histo3d_=creerHisto3d(); // ajout du tableau dans le panel tabbed - panelPrincipal_.addTab("tableau", FudaaResource.FUDAA.getIcon("crystal_arbre"), panelGestionTableau_); + panelPrincipal_.addTab("R\xE9sultats d\xE9taill\xE9s", FudaaResource.FUDAA.getIcon("crystal_arbre"), panelGestionTableau_); - panelPrincipal_.addTab("Camembert", FudaaResource.FUDAA.getIcon("crystal_graphe"), camembert_); + panelPrincipal_.addTab("R\xE9partition par cat\xE9gorie", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelCamembert_); @@ -248,13 +256,19 @@ // panel qui contient les differents boutons this.controlPanel_.add(quitter_); - this.controlPanel_.add(new JLabel("Selectionnez la cat\xE9gorie \xE0 visualiser: ")); + this.controlPanel_.add(new JLabel(" Cat\xE9gorie \xE0 visualiser:")); this.controlPanel_.add(this.ListeNavires_); this.controlPanel_.add(exportationExcel_); this.panelGestionTableau_.add(this.controlPanel_, BorderLayout.SOUTH); + + //panel du cammbert + camembert_= creerCamembert(); + this.panelCamembert_.add(camembert_,BorderLayout.CENTER); + this.controlPanelCamembert_.add(quitter4_); + this.panelCamembert_.add(this.controlPanelCamembert_, BorderLayout.SOUTH); // etape 2: remplissage du comboliste avec les noms des navires - this.ListeNavires_.addItem("Tous"); + this.ListeNavires_.addItem("toutes"); for (int i = 0; i < donnees_.listeBateaux_.listeNavires_.size(); i++) { this.ListeNavires_.addItem("" + donnees_.listeBateaux_.retournerNavire(i).nom); } @@ -276,7 +290,7 @@ // bouton qui permet de generer le contenu du tableau en ficheir excel: this.exportationExcel_ - .setToolTipText("permet d'importer le contenu des donn\xE9es dans un fichier excel que l'on pourra par la suite imprimer"); + .setToolTipText("Exporte le contenu du tableau au format xls"); exportationExcel_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { File fichier; @@ -316,23 +330,22 @@ ******************************************************************************************************************/ // Box panoption=Box.createVerticalBox(); - final JTabbedPane panoption = new JTabbedPane(); + final Box panoption = Box.createVerticalBox(); // panoption.setLayout(new GridLayout(2,1)); // JScrollPane pcnasc=new JScrollPane(panoption); this.optionPanel_.add(panoption); final Box bVert2 = Box.createVerticalBox(); + panoption.add(bVert2); // bVert2.add(new JLabel("Affichage navires:")); // bVert2.setBorder(this.bordnormal_); for (int i = 0; i < this.tableauChoixNavires_.length; i++) { bVert2.add(this.tableauChoixNavires_[i]); } final TitledBorder bordure1 = BorderFactory.createTitledBorder(BorderFactory - .createEtchedBorder(EtchedBorder.LOWERED), "bateaux"); + .createEtchedBorder(EtchedBorder.LOWERED), "Cat\xE9gories"); bVert2.setBorder(bordure1); - final JScrollPane pcnasc = new JScrollPane(bVert2); - panoption.addTab("bateaux", pcnasc); - + this.optionPanel_.setBorder(this.compound_); /******************************************************************************************************************* @@ -351,7 +364,7 @@ this.panelCourbe_.add(this.graphe_, BorderLayout.CENTER); // etape 5: bouton de generation du fichier image - exportationgraphe_.setToolTipText("permet de g\xE9n\xE9rer un fichier image \xE0 partir du graphe"); + exportationgraphe_.setToolTipText("Exporte le graphe au format image"); exportationgraphe_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { @@ -380,7 +393,7 @@ this.panelHisto_.add(this.histo_, BorderLayout.CENTER); // etape 5: bouton de generation du fichier image - exportationHisto_.setToolTipText("permet de g\xE9n\xE9rer un fichier image \xE0 partir de l'histogramme"); + exportationHisto_.setToolTipText("Exporte l'histogramme au format image"); exportationHisto_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { @@ -394,9 +407,10 @@ this.panelHisto_.add(this.controlPanelHisto_, BorderLayout.SOUTH); /** listener des boutons quitter */ - this.quitter_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); - this.quitter2_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); - this.quitter3_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); + this.quitter_.setToolTipText("Ferme la sous-fen\xEAtre"); + this.quitter2_.setToolTipText("Ferme la sous-fen\xEAtre"); + this.quitter3_.setToolTipText("Ferme la sous-fen\xEAtre"); + this.quitter4_.setToolTipText("Ferme la sous-fen\xEAtre"); final ActionListener actionQuitter = new ActionListener() { public void actionPerformed(ActionEvent e) { Sinavi3ResultatGenerationBateaux.this.windowClosed(); @@ -405,21 +419,22 @@ this.quitter_.addActionListener(actionQuitter); this.quitter2_.addActionListener(actionQuitter); this.quitter3_.addActionListener(actionQuitter); + this.quitter4_.addActionListener(actionQuitter); // ajout d'un menuBar // petite barre de menu agreable - final JMenuBar menuBar = new JMenuBar(); + /*final JMenuBar menuBar = new JMenuBar(); final JMenu menuFile = new JMenu("Fichier"); final JMenuItem menuFileExit = new JMenuItem("Quitter"); final JMenu menuOption = new JMenu("Options"); - final JMenu menuInfo = new JMenu("A propos de"); + final JMenu menuInfo = new JMenu("A propos de");*/ // menuFile.set.setLabel("Fichier"); // menuOption.setLabel("Options"); // menuFileExit.setLabel("Quitter"); // menuInfo.setLabel("A propos de"); - menuFileExit.addActionListener(new ActionListener() { + /*menuFileExit.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { Sinavi3ResultatGenerationBateaux.this.windowClosed(); } @@ -428,7 +443,7 @@ menuBar.add(menuFile); menuBar.add(menuOption); menuBar.add(menuInfo); - setJMenuBar(menuBar); + setJMenuBar(menuBar);*/ } @@ -520,10 +535,13 @@ String g = ""; g += "graphe\n{\n"; - g += " titre \" G\xE9n\xE9ration bateaux \"\n"; - g += " sous-titre \" Nombres de bateaux par cat\xE9gories \"\n"; + g += " titre \"G\xE9n\xE9ration de bateaux\"\n"; + g += " sous-titre \"Etude par cat\xE9gorie de bateaux\"\n"; g += " animation non\n"; g += " legende " + "oui" + "\n"; + + g += " marges\n {\n"; + g += " gauche 100\n"; g += " droite 100\n"; g += " haut 50\n"; g += " bas 30\n }\n"; /* * g += " marges\n {\n"; g += " gauche " + ((Integer)preference.dlgParamAff.tfMargeG.getValue()).intValue() + "\n"; * g += " droite " + ((Integer)preference.dlgParamAff.tfMargeD.getValue()).intValue() + "\n"; g += " haut " + @@ -532,8 +550,8 @@ */ g += " axe\n {\n"; // abscisses - g += " titre \" cat." + "\"\n"; - g += " unite \" Cat\xE9gories \"\n"; + g += " titre \"Cat\xE9gorie" + "\"\n"; + g += " unite \"num\xE9ro\"\n"; g += " orientation " + "horizontal" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -542,8 +560,8 @@ g += " }\n"; g += " axe\n {\n"; // Ordonn\xE9es - g += " titre \" nb.bateaux" + "\"\n"; - g += " unite \" bateaux \"\n"; + g += " titre \"Bateaux" + "\"\n"; + g += " unite \"nombre\"\n"; g += " orientation " + "vertical" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -615,10 +633,13 @@ String g = ""; g += "graphe\n{\n"; - g += " titre \" G\xE9n\xE9ration bateaux \"\n"; - g += " sous-titre \" Nombres de bateaux par cat\xE9gories \"\n"; + g += " titre \"G\xE9n\xE9ration de bateaux\"\n"; + g += " sous-titre \"Etude par cat\xE9gorie de bateaux\"\n"; g += " animation non\n"; g += " legende " + "oui" + "\n"; + + g += " marges\n {\n"; + g += " gauche 100\n"; g += " droite 100\n"; g += " haut 50\n"; g += " bas 30\n }\n"; /* * g += " marges\n {\n"; g += " gauche " + ((Integer)preference.dlgParamAff.tfMargeG.getValue()).intValue() + "\n"; * g += " droite " + ((Integer)preference.dlgParamAff.tfMargeD.getValue()).intValue() + "\n"; g += " haut " + @@ -627,8 +648,8 @@ */ g += " axe\n {\n"; // abscisses - g += " titre \" cat." + "\"\n"; - g += " unite \" Categories \"\n"; + g += " titre \"Cat\xE9gorie" + "\"\n"; + g += " unite \"num\xE9ro\"\n"; g += " orientation " + "horizontal" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -637,8 +658,8 @@ g += " }\n"; g += " axe\n {\n"; // Ordonn\xE9es - g += " titre \" nb.bateaux" + "\"\n"; - g += " unite \"" + " bateaux" + "\"\n"; + g += " titre \"Bateaux" + "\"\n"; + g += " unite \"" + "nombre" + "\"\n"; g += " orientation " + "vertical" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -749,7 +770,7 @@ - return Sinavi3JFreeChartCamembert.creerCamembert(FonctionsSimu.diviserSimu(this.donnees_.params_.ResultatsCompletsSimulation.ResultatsGenerationNavires), noms, "G\xE9n\xE9rations de bateaux par cat\xE9gorie"); + return Sinavi3JFreeChartCamembert.creerCamembert(FonctionsSimu.diviserSimu(this.donnees_.params_.ResultatsCompletsSimulation.ResultatsGenerationNavires), noms, "G\xE9n\xE9ration de bateaux par cat\xE9gorie"); } @@ -789,7 +810,7 @@ tabNavires[cpt++]=this.donnees_.params_.ResultatsCompletsSimulation.ResultatsGenerationNavires[i]; - Sinavi3JFreeChartCamembert.modifierCamembert(camembert_, FonctionsSimu.diviserSimu(tabNavires), noms, "G\xE9n\xE9rations de bateaux par cat\xE9gories"); + Sinavi3JFreeChartCamembert.modifierCamembert(camembert_, FonctionsSimu.diviserSimu(tabNavires), noms, "G\xE9n\xE9ration de bateaux par cat\xE9gorie"); } @@ -800,7 +821,7 @@ for(int i=0;i<donnees_.listeBateaux_.listeNavires_.size();i++) noms[cpt++]=donnees_.listeBateaux_.retournerNavire(i).nom; - return Sinavi3JFreeChartCamembert.creerHisto3d(this.donnees_.params_.ResultatsCompletsSimulation.ResultatsGenerationNavires, "G\xE9n\xE9rations de bateaux par cat\xE9gories",noms); + return Sinavi3JFreeChartCamembert.creerHisto3d(this.donnees_.params_.ResultatsCompletsSimulation.ResultatsGenerationNavires, "G\xE9n\xE9ration de bateaux par cat\xE9gorie",noms); } /** Modified: trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteGeneraleCategories.java =================================================================== --- trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteGeneraleCategories.java 2008-09-25 15:22:02 UTC (rev 3982) +++ trunk/fudaa_devel/fudaa/src/org/fudaa/fudaa/sinavi3/Sinavi3ResultatsAttenteGeneraleCategories.java 2008-09-25 15:22:17 UTC (rev 3983) @@ -9,6 +9,7 @@ import java.awt.BorderLayout; import java.awt.Dimension; +import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.Point; import java.awt.event.ActionEvent; @@ -21,6 +22,7 @@ import javax.swing.BorderFactory; import javax.swing.Box; +import javax.swing.ButtonGroup; import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JFileChooser; @@ -28,7 +30,9 @@ import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; +import javax.swing.JRadioButton; import javax.swing.JScrollPane; +import javax.swing.JTabbedPane; import javax.swing.JTextField; import javax.swing.border.Border; import javax.swing.border.EtchedBorder; @@ -108,15 +112,24 @@ JCheckBox choixTotalAttente_ = new JCheckBox("Attente totale", true); - JCheckBox choixSecurite_ = new JCheckBox("Attentes s\xE9curit\xE9", true); - JCheckBox choixAcces_ = new JCheckBox("Attentes acc\xE8s", true); - JCheckBox choixOccupation_ = new JCheckBox("Attentes occupation", true); - JCheckBox choixPannes_ = new JCheckBox("Attentes indispo", true); + JCheckBox choixSecurite_ = new JCheckBox("Attentes de s\xE9curit\xE9", true); + JCheckBox choixAcces_ = new JCheckBox("Attentes d'acc\xE8s", true); + JCheckBox choixOccupation_ = new JCheckBox("Attentes d'occupation", true); + JCheckBox choixPannes_ = new JCheckBox("Attentes d'indisponibilit\xE9", true); + + BuPanel optionPanelgraph_ = new BuPanel(); + JRadioButton choixTotalAttente2_ = new JRadioButton("Attentes totales", true); + JRadioButton choixSecurite2_ = new JRadioButton("Attentes de s\xE9curit\xE9", false); + JRadioButton choixAcces2_ = new JRadioButton("Attentes d'acc\xE8s", false); + JRadioButton choixOccupation2_ = new JRadioButton("Attentes d'occupation", false); + JRadioButton choixPannes2_ = new JRadioButton("Attentes d'indisponibilit\xE9", false); // checkbox desz differents types d elements: - JCheckBox choixChenal_ = new JCheckBox("voir biefs", true); + JCheckBox choixChenal_ = new JCheckBox("Biefs", true); + JCheckBox choixChenal2_ = new JCheckBox("Biefs", true); - JCheckBox choixEcluse_ = new JCheckBox("voir ecluses", true); + JCheckBox choixEcluse_ = new JCheckBox("Ecluses ", true); + JCheckBox choixEcluse2_ = new JCheckBox("Ecluses ", true); JCheckBox choixMax_ = new JCheckBox("Attente max", true); JCheckBox choixMoy_ = new JCheckBox("Attente moyenne", true); @@ -124,7 +137,7 @@ boolean seuil_ = false; JTextField valSeuil_ = new JTextField(6); - JCheckBox valideSeuil_ = new JCheckBox("seuil", false); + JCheckBox valideSeuil_ = new JCheckBox("Afficher le seuil", false); float valeurSeuil = 0; /** @@ -144,6 +157,11 @@ BuTabbedPane panelPrincipalAffichage_ = new BuTabbedPane(); /** + * Panel tabbed qui g\xE8re les 2 onglets de repr\xE9sentations graphiques + */ + BuTabbedPane panelGraphAffichage_ = new BuTabbedPane(); + + /** * Panel cniotenant le tableau et les boutns de controles */ BuPanel panelGestionTableau_ = new BuPanel(); @@ -169,6 +187,11 @@ BuPanel controlPanelHisto_ = new BuPanel(); /** + * panel de gestion des repr\xE9sentations graphiques + */ + BuPanel panelGraph_ = new BuPanel(); + + /** * panel de gestion des courbes */ BuPanel panelCourbe_ = new BuPanel(); @@ -186,16 +209,16 @@ /** * buoton de generation des resultats */ - private final BuButton exportationExcel_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Excel"); + private final BuButton exportationExcel_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); - final BuButton exportationgraphe_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "exportation image"); + final BuButton exportationgraphe_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); - final BuButton exportationHisto_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "exportation image"); - private final BuButton quitter_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); - private final BuButton quitter2_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); - private final BuButton quitter3_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "quitter"); - private final BuButton lancerRecherche_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_oui"), "Recherche"); - private final BuButton lancerOptions_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_oui"), "modifier"); + final BuButton exportationHisto_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_generer"), "Exporter"); + private final BuButton quitter_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton quitter2_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton quitter3_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_quitter"), "Quitter"); + private final BuButton lancerRecherche_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_oui"), "Rechercher"); + private final BuButton lancerOptions_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_oui"), "Modifier"); private final BuButton validerSeuil_ = new BuButton(/* FudaaResource.FUDAA.getIcon("crystal22_oui"), */"valider seuil"); private final BuButton validerElem_ = new BuButton(FudaaResource.FUDAA.getIcon("crystal_oui"), "Ok"); @@ -227,18 +250,18 @@ this.panelPrincipal_.setLayout(new BorderLayout()); this.getContentPane().add(this.panelPrincipal_/* ,BorderLayout.CENTER */); this.panelPrincipal_.add(this.selectionPanel_, BorderLayout.NORTH); - this.panelPrincipal_.add(this.optionPanel_, BorderLayout.WEST); + // this.panelPrincipal_.add(this.optionPanel_, BorderLayout.WEST); this.panelPrincipal_.add(this.panelPrincipalAffichage_, BorderLayout.CENTER); // ajout du tableau dans le panel tabbed - panelPrincipalAffichage_.addTab("tableau", FudaaResource.FUDAA.getIcon("crystal_arbre"), panelGestionTableau_); + panelPrincipalAffichage_.addTab("R\xE9sultats d\xE9taill\xE9s", FudaaResource.FUDAA.getIcon("crystal_arbre"), panelGestionTableau_); // ajout des courbes dans le panel de la sous fenetre - panelPrincipalAffichage_.addTab("Graphe", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelCourbe_); + //panelPrincipalAffichage_.addTab("Graphe", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelCourbe_); + panelPrincipalAffichage_.addTab("Exploitation graphique", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelGraph_); + //panelPrincipalAffichage_.addTab("Histogramme", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelHisto_); - panelPrincipalAffichage_.addTab("Histogramme", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelHisto_); - // remplissage du comboliste avec les noms des navires // this.ListeNavires_.addItem("Tous"); for (int i = 0; i < donnees_.listeBateaux_.listeNavires_.size(); i++) { @@ -248,10 +271,10 @@ /******************************************************************************************************************* * gestion du panel de selection ******************************************************************************************************************/ - this.selectionPanel_.setLayout(new GridLayout(2, 1)); + this.selectionPanel_.setLayout(new GridLayout(1, 1)); - selectionPanel1 = new BuPanel(); - selectionPanel1.add(new JLabel("Attentes \xE0 cumuler pour la cat\xE9gorie de bateaux:")); + selectionPanel1 = new BuPanel(new FlowLayout(FlowLayout.LEFT)); + selectionPanel1.add(new JLabel("Attentes \xE0 cumuler pour la cat\xE9gorie de bateaux")); // selectionPanel1.add(new JLabel("Element de depart:")); // selectionPanel1.add(this.ListeTypesDepart_); // selectionPanel1.add(this.ListeElementDepart_); @@ -259,22 +282,25 @@ // selectionPanel1.add(new JLabel("Element d'arrivee:")); // selectionPanel1.add(this.ListeTypesArrivee_); // selectionPanel1.add(this.ListeElementArrivee_); - selectionPanel1.setBorder(this.bordnormal_); + // selectionPanel1.setBorder(this.bordnormal_); this.selectionPanel_.add(selectionPanel1); - final BuPanel selectionPanel2 = new BuPanel(); - selectionPanel2.add(new JLabel("sens du trajet: ")); - selectionPanel2.add(this.Sens_); + // final BuPanel selectionPanel2 = new BuPanel(new FlowLayout(FlowLayout.LEFT)); + selectionPanel1.add(new JLabel(" dans le sens")); + selectionPanel1.add(this.Sens_); // selectionPanel2.add(new JLabel("H.Min ")); // selectionPanel2.add(new JLabel("Horaire de fin: ")); // selectionPanel2.add(this.horaireFin_); // selectionPanel2.add(new JLabel("H.Min ")); - selectionPanel2.add(lancerRecherche_); + selectionPanel1.add(lancerRecherche_); - selectionPanel2.setBorder(this.bordnormal_); - this.selectionPanel_.add(selectionPanel2); + // selectionPanel2.setBorder(this.bordnormal_); + // this.selectionPanel_.add(selectionPanel2); - this.selectionPanel_.setBorder(this.compound_); + //this.selectionPanel_.setBorder(this.compound_); + final TitledBorder bordurea = BorderFactory.createTitledBorder(BorderFactory + .createEtchedBorder(EtchedBorder.LOWERED), "D\xE9finition de la recherche"); + this.selectionPanel_.setBorder(bordurea); // listener des liste box final ActionListener RemplissageElement = new ActionListener() { @@ -362,7 +388,7 @@ panoption.add(bVert); // bVert.add(new JLabel("Options Affichage:")); bVert.add(new JLabel("")); - bVert.add(this.choixNbNavires_); + // bVert.add(this.choixNbNavires_); bVert.setBorder(this.bordnormal_); // bVert.add(this.choixMarees_); bVert.add(this.choixSecurite_); @@ -371,7 +397,7 @@ bVert.add(this.choixPannes_); bVert.add(this.choixTotalAttente_); final TitledBorder bordure1 = BorderFactory.createTitledBorder(BorderFactory - .createEtchedBorder(EtchedBorder.LOWERED), "Options Affichage"); + .createEtchedBorder(EtchedBorder.LOWERED), "Types d'attentes"); bVert.setBorder(bordure1); // bVert.add(lancerOptions_); panoption.add(new JLabel("")); @@ -385,20 +411,23 @@ bVert2.add(this.choixEcluse_); final TitledBorder bordure2 = BorderFactory.createTitledBorder(BorderFactory - .createEtchedBorder(EtchedBorder.LOWERED), "type \xE9l\xE9ment"); + .createEtchedBorder(EtchedBorder.LOWERED), "Types d'\xE9l\xE9ments"); bVert2.setBorder(bordure2); - final Box bVert3 = Box.createVerticalBox(); - final TitledBorder bordure3 = BorderFactory.createTitledBorder(BorderFactory + /* + * final Box bVert3 = Box.createVerticalBox(); + * final TitledBorder bordure3 = BorderFactory.createTitledBorder(BorderFactory .createEtchedBorder(EtchedBorder.LOWERED), "attente"); - bVert3.setBorder(bordure3); - bVert3.add(this.choixMin_); - bVert3.add(this.choixMoy_); - bVert3.add(this.choixMax_); - this.choixMin_.addActionListener(this); - this.choixMoy_.addActionListener(this); - this.choixMax_.addActionListener(this); - panoption.add(bVert3); + * bVert3.setBorder(bordure3); + * bVert3.add(this.choixMin_); + * bVert3.add(this.choixMoy_); + * bVert3.add(this.choixMax_); + * this.choixMin_.addActionListener(this); + * this.choixMoy_.addActionListener(this); + * this.choixMax_.addActionListener(this); + * panoption.add(bVert3); + */ + this.optionPanel_.setBorder(this.compound_); this.optionPanel_.add(panoption); @@ -417,7 +446,60 @@ this.choixEcluse_.addActionListener(this); // lancerOptions_.addActionListener(this); + /******************************************************************************************************************* + * gestion du panel des options graphiques + ******************************************************************************************************************/ + + final Box panoptiongraph = Box.createVerticalBox(); + final Box bVertgraph = Box.createVerticalBox(); + panoptiongraph.add(bVertgraph); + + ButtonGroup bg=new ButtonGroup(); + bg.add(choixSecurite2_); + bg.add(choixAcces2_); + bg.add(choixOccupation2_); + bg.add(choixPannes2_); + bg.add(this.choixTotalAttente2_); + bg.add(choixAcces2_); + + bVertgraph.add(new JLabel("")); + final TitledBorder borduregraph1 = BorderFactory.createTitledBorder(BorderFactory + .createEtchedBorder(EtchedBorder.LOWERED), "Types d'attentes"); + bVertgraph.setBorder(borduregraph1); + bVertgraph.add(this.choixSecurite2_); + bVertgraph.add(this.choixAcces2_); + bVertgraph.add(this.choixOccupation2_); + bVertgraph.add(this.choixPannes2_); + bVertgraph.add(this.choixTotalAttente2_); + + panoptiongraph.add(new JLabel("")); + final Box bVertgraph2 = Box.createVerticalBox(); + panoptiongraph.add(bVertgraph2); + bVertgraph2.setBorder(this.bordnormal_); + bVertgraph2.add(this.choixChenal2_); + + bVertgraph2.add(this.choixEcluse2_); + + final TitledBorder borduregraph2 = BorderFactory.createTitledBorder(BorderFactory + .createEtchedBorder(EtchedBorder.LOWERED), "Types d'\xE9l\xE9ments"); + bVertgraph2.setBorder(borduregraph2); + + this.optionPanelgraph_.setBorder(this.compound_); + this.optionPanelgraph_.add(panoptiongraph); + + // listener des checkbox de choix des options d affichage + + this.choixAcces2_.addActionListener(this); + this.choixSecurite2_.addActionListener(this); + this.choixTotalAttente2_.addActionListener(this); + this.choixOccupation2_.addActionListener(this); + this.choixPannes2_.addActionListener(this); + this.choixChenal2_.addActionListener(this); + this.choixEcluse2_.addActionListener(this); + + + /******************************************************************************************************************* * gestion du panel tableau panelGestionTableau_ ******************************************************************************************************************/ @@ -429,6 +511,7 @@ // ajout au centre du panel qui contiendra le tableau d affichage this.panelGestionTableau_.add(asc, BorderLayout.CENTER); + this.panelGestionTableau_.add(this.optionPanel_, BorderLayout.WEST); // panel qui contient les differents boutons this.controlPanel_.add(quitter_); @@ -464,7 +547,7 @@ // bouton qui permet de generer le contenu du tableau en ficheir excel: this.exportationExcel_ - .setToolTipText("permet d'importer le contenu des donn\xE9es dans un fichier excel que l'on pourra par la suite imprimer"); + .setToolTipText("Exporte le contenu du tableau au format xls"); exportationExcel_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { File fichier; @@ -500,6 +583,15 @@ }); /******************************************************************************************************************* + * gestion du panel courbes panelGraph_ + ******************************************************************************************************************/ + this.panelGraph_.setLayout(new BorderLayout()); + this.panelGraph_.add(this.optionPanelgraph_, BorderLayout.WEST); + this.panelGraph_.add(this.panelGraphAffichage_, BorderLayout.CENTER); + panelGraphAffichage_.addTab("Graphe", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelCourbe_); + panelGraphAffichage_.addTab("Histogramme", FudaaResource.FUDAA.getIcon("crystal_graphe"), panelHisto_); + + /******************************************************************************************************************* * gestion du panel courbes panelCourbe_ ******************************************************************************************************************/ // etape 1: architecture de la frame @@ -515,7 +607,7 @@ this.panelCourbe_.add(this.graphe_, BorderLayout.CENTER); // etape 5: bouton de generation du fichier image - exportationgraphe_.setToolTipText("permet de g\xE9n\xE9rer un fichier image \xE0 partir du graphe"); + exportationgraphe_.setToolTipText("Exporte le graphe au format image"); exportationgraphe_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { @@ -546,7 +638,7 @@ this.panelHisto_.add(/* this.histo_ */panneauHisto, BorderLayout.CENTER); // etape 5: bouton de generation du fichier image - exportationHisto_.setToolTipText("permet de g\xE9n\xE9rer un fichier image \xE0 partir de l'histogramme"); + exportationHisto_.setToolTipText("Exporte l'histogramme au format image"); exportationHisto_.addActionListener(new ActionListener() { public void actionPerformed(final ActionEvent e) { @@ -581,15 +673,15 @@ // etape 6: creation du panel des boutons des courbes: this.controlPanelHisto_.add(quitter3_); this.controlPanelHisto_.add(exportationHisto_); - this.controlPanelHisto_.add(new JLabel(" seuil:")); + this.controlPanelHisto_.add(new JLabel(" Seuil:")); this.controlPanelHisto_.add(valSeuil_); this.controlPanelHisto_.add(valideSeuil_); this.panelHisto_.add(this.controlPanelHisto_, BorderLayout.SOUTH); /** listener des boutons quitter */ - this.quitter_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); - this.quitter2_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); - this.quitter3_.setToolTipText("cliquez sur ce bouton pour fermer la sous fen\xEAtre"); + this.quitter_.setToolTipText("Ferme la sous-fen\xEAtre"); + this.quitter2_.setToolTipText("Ferme la sous-fen\xEAtre"); + this.quitter3_.setToolTipText("Ferme la sous-fen\xEAtre"); final ActionListener actionQuitter = new ActionListener() { public void actionPerformed(ActionEvent e) { Sinavi3ResultatsAttenteGeneraleCategories.this.windowClosed(); @@ -601,7 +693,7 @@ // ajout d'un menuBar // petite barre de menu agreable - final JMenuBar menuBar = new JMenuBar(); + /* final JMenuBar menuBar = new JMenuBar(); final JMenu menuFile = new JMenu("Fichier"); final JMenuItem menuFileExit = new JMenuItem("Quitter"); final JMenu menuOption = new JMenu("Options"); @@ -622,7 +714,7 @@ menuBar.add(menuOption); menuBar.add(menuInfo); setJMenuBar(menuBar); - +*/ } /** @@ -1013,11 +1105,11 @@ String affichageGraphe() { int nbElements = 0; - if (this.choixChenal_.isSelected()) { + if (this.choixChenal2_.isSelected()) { nbElements += this.donnees_.listeBief_.listeBiefs_.size(); } - if (this.choixEcluse_.isSelected()) { + if (this.choixEcluse2_.isSelected()) { nbElements += this.donnees_.listeEcluse_.listeEcluses_.size(); } @@ -1035,7 +1127,7 @@ String g = ""; g += "graphe\n{\n"; - g += " titre \" Attente de la cat\xE9gorie " + (String) this.ListeNavires_.getSelectedItem(); + g += " titre \"Attentes pour la cat\xE9gorie " + (String) this.ListeNavires_.getSelectedItem(); if (this.Sens_.getSelectedIndex() == 0) { g += " dans le sens avalant"; } else if (this.Sens_.getSelectedIndex() == 1) { @@ -1045,20 +1137,23 @@ } g += " \"\n"; - if (this.choixSecurite_.isSelected()) { - g += " sous-titre \" Attentes de S\xE9curit\xE9 \"\n"; - } else if (this.choixAcces_.isSelected()) { - g += " sous-titre \" Attentes d' Acc\xE8s \"\n"; - } else if (this.choixOccupation_.isSelected()) { - g += " sous-titre \" Attentes Occupation \"\n"; - } else if (this.choixPannes_.isSelected()) { - g += " sous-titre \" Attentes de Pannes \"\n"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " sous-titre \" Attente totale \"\n"; + if (this.choixSecurite2_.isSelected()) { + g += " sous-titre \"Attentes de s\xE9curit\xE9\"\n"; + } else if (this.choixAcces2_.isSelected()) { + g += " sous-titre \"Attentes d'acc\xE8s\"\n"; + } else if (this.choixOccupation2_.isSelected()) { + g += " sous-titre \"Attentes d'occupation\"\n"; + } else if (this.choixPannes2_.isSelected()) { + g += " sous-titre \"Attentes d'indisponibilit\xE9\"\n"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += " sous-titre \"Attentes totales\"\n"; } g += " animation non\n"; g += " legende " + "oui" + "\n"; + + g += " marges\n {\n"; + g += " gauche 100\n"; g += " droite 100\n"; g += " haut 50\n"; g += " bas 30\n }\n"; /* * g += " marges\n {\n"; g += " gauche " + ((Integer)preference.dlgParamAff.tfMargeG.getValue()).intValue() + "\n"; * g += " droite " + ((Integer)preference.dlgParamAff.tfMargeD.getValue()).intValue() + "\n"; g += " haut " + @@ -1067,8 +1162,8 @@ */ g += " axe\n {\n"; // abscisses - g += " titre \" cat." + "\"\n"; - g += " unite \" Categories \"\n"; + g += " titre \"El\xE9ment" + "\"\n"; + g += " unite \"num\xE9ro\"\n"; g += " orientation " + "horizontal" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -1079,8 +1174,8 @@ g += " }\n"; g += " axe\n {\n"; // Ordonn\xE9es - g += " titre \" dur\xE9es" + "\"\n"; - g += " unite \"" + " H.Min" + "\"\n"; + g += " titre \"Dur\xE9e" + "\"\n"; + g += " unite \"" + "h.min" + "\"\n"; g += " orientation " + "vertical" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -1101,16 +1196,16 @@ g += " courbe\n {\n"; g += " titre \""; - if (this.choixSecurite_.isSelected()) { - g += " attentes S\xE9curit\xE9 maxi"; - } else if (this.choixAcces_.isSelected()) { - g += "attentes Acc\xE8s maxi"; - } else if (this.choixOccupation_.isSelected()) { - g += " attentes Occupations maxi"; - } else if (this.choixPannes_.isSelected()) { - g += " attentes Indispo maxi"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " attentes totale maxi"; + if (this.choixSecurite2_.isSelected()) { + g += "attentes de s\xE9curit\xE9 maximales"; + } else if (this.choixAcces2_.isSelected()) { + g += "attentes d'acc\xE8s maximales"; + } else if (this.choixOccupation2_.isSelected()) { + g += "attentes d'occupation maximales"; + } else if (this.choixPannes2_.isSelected()) { + g += "attentes d'indisponibilit\xE9 maximales"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += "attentes totales maximales"; } // g += "dur\xE9es maxi"; /* @@ -1131,30 +1226,30 @@ */ compteurElem = 0; for (int n = 0; n < this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories.length; n++) { - if ((this.choixChenal_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) - || (this.choixEcluse_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) + if ((this.choixChenal2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) + || (this.choixEcluse2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) ) { g += (compteurElem + 1) + " "; compteurElem++; - if (this.choixSecurite_.isSelected()) { + if (this.choixSecurite2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteSecuMaxi); - } else if (this.choixAcces_.isSelected()) { + } else if (this.choixAcces2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteAccesMaxi); - } else if (this.choixOccupation_.isSelected()) { + } else if (this.choixOccupation2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteOccupMaxi); - } else if (this.choixPannes_.isSelected()) { + } else if (this.choixPannes2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attentePanneMaxi); - } else if (this.choixTotalAttente_.isSelected()) { + } else if (this.choixTotalAttente2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteTotaleMaxi); @@ -1187,16 +1282,16 @@ g += " courbe\n {\n"; g += " titre \""; - if (this.choixSecurite_.isSelected()) { - g += " attentes S\xE9curit\xE9 moyenne"; - } else if (this.choixAcces_.isSelected()) { - g += "attentes Acc\xE8s moyenne"; - } else if (this.choixOccupation_.isSelected()) { - g += " attentes Occupations moyenne"; - } else if (this.choixPannes_.isSelected()) { - g += " attentes Indispo moyenne"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " attentes totale moyenne"; + if (this.choixSecurite2_.isSelected()) { + g += "attentes de s\xE9curit\xE9 moyennes"; + } else if (this.choixAcces2_.isSelected()) { + g += "attentes d'acc\xE8s moyennes"; + } else if (this.choixOccupation2_.isSelected()) { + g += "attentes d'occupation moyennes"; + } else if (this.choixPannes2_.isSelected()) { + g += "attentes d'indisponibilit\xE9 moyennes"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += "attentes totales moyennes"; } /* @@ -1217,35 +1312,35 @@ */ compteurElem = 0; for (int n = 0; n < this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories.length; n++) { - if ((this.choixChenal_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) - || (this.choixEcluse_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) + if ((this.choixChenal2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) + || (this.choixEcluse2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) ) { g += (compteurElem + 1)// numero de la cat\xE9gorie + " "; compteurElem++; - if (this.choixSecurite_.isSelected()) { + if (this.choixSecurite2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) (this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteSecuTotale / this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].nbNaviresAttenteSecu)); - } else if (this.choixAcces_.isSelected()) { + } else if (this.choixAcces2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) (this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteAccesTotale / this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].nbNaviresAttenteAcces)); - } else if (this.choixOccupation_.isSelected()) { + } else if (this.choixOccupation2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) (this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteOccupTotale / this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].nbNaviresAtenteOccup)); - } else if (this.choixPannes_.isSelected()) { + } else if (this.choixPannes2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) (this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attentePanneTotale / this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].nbNaviresAttentePanne)); - } else if (this.choixTotalAttente_.isSelected()) { + } else if (this.choixTotalAttente2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) (this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteMegaTotale / this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ @@ -1267,16 +1362,16 @@ g += " courbe\n {\n"; g += " titre \""; - if (this.choixSecurite_.isSelected()) { - g += " attentes S\xE9curit\xE9 mini"; - } else if (this.choixAcces_.isSelected()) { - g += "attentes Acc\xE8s mini"; - } else if (this.choixOccupation_.isSelected()) { - g += " attentes Occupations mini"; - } else if (this.choixPannes_.isSelected()) { - g += " attentes Indispo mini"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " attentes totale mini"; + if (this.choixSecurite2_.isSelected()) { + g += "attentes de s\xE9curit\xE9 minimales"; + } else if (this.choixAcces2_.isSelected()) { + g += "attentes d'acc\xE8s minimales"; + } else if (this.choixOccupation2_.isSelected()) { + g += "attentes d'occupation minimales"; + } else if (this.choixPannes2_.isSelected()) { + g += "attentes d'indisponibilit\xE9 minimales"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += "attentes totales minimales"; } g += "\"\n"; @@ -1294,8 +1389,8 @@ */ compteurElem = 0; for (int n = 0; n < this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories.length; n++) { - if ((this.choixChenal_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) - || (this.choixEcluse_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) + if ((this.choixChenal2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) + || (this.choixEcluse2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) ) { @@ -1303,23 +1398,23 @@ + " "; compteurElem++; - if (this.choixSecurite_.isSelected()) { + if (this.choixSecurite2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteSecuMini); - } else if (this.choixAcces_.isSelected()) { + } else if (this.choixAcces2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteAccesMini); - } else if (this.choixOccupation_.isSelected()) { + } else if (this.choixOccupation2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteOccupMini); - } else if (this.choixPannes_.isSelected()) { + } else if (this.choixPannes2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attentePanneMini); - } else if (this.choixTotalAttente_.isSelected()) { + } else if (this.choixTotalAttente2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteTotaleMini); @@ -1362,11 +1457,11 @@ String affichageHistogramme() { int nbElements = 0; - if (this.choixChenal_.isSelected()) { + if (this.choixChenal2_.isSelected()) { nbElements += this.donnees_.listeBief_.listeBiefs_.size(); } - if (this.choixEcluse_.isSelected()) { + if (this.choixEcluse2_.isSelected()) { nbElements += this.donnees_.listeEcluse_.listeEcluses_.size(); } @@ -1384,7 +1479,7 @@ String g = ""; g += "graphe\n{\n"; - g += " titre \" Attente de la cat\xE9gorie " + (String) this.ListeNavires_.getSelectedItem();/* +" \"\n"; */ + g += " titre \"Attentes pour la cat\xE9gorie " + (String) this.ListeNavires_.getSelectedItem();/* +" \"\n"; */ if (this.Sens_.getSelectedIndex() == 0) { g += " dans le sens avalant"; } else if (this.Sens_.getSelectedIndex() == 1) { @@ -1394,20 +1489,23 @@ } g += " \"\n"; - if (this.choixSecurite_.isSelected()) { - g += " sous-titre \" Attentes de S\xE9curit\xE9 \"\n"; - } else if (this.choixAcces_.isSelected()) { - g += " sous-titre \" Attentes d' Acc\xE8s \"\n"; - } else if (this.choixOccupation_.isSelected()) { - g += " sous-titre \" Attentes Occupation \"\n"; - } else if (this.choixPannes_.isSelected()) { - g += " sous-titre \" Attentes de Indispo \"\n"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " sous-titre \" Attente totale \"\n"; + if (this.choixSecurite2_.isSelected()) { + g += " sous-titre \"Attentes de s\xE9curit\xE9\"\n"; + } else if (this.choixAcces2_.isSelected()) { + g += " sous-titre \"Attentes d'acc\xE8s\"\n"; + } else if (this.choixOccupation2_.isSelected()) { + g += " sous-titre \"Attentes d'occupation\"\n"; + } else if (this.choixPannes2_.isSelected()) { + g += " sous-titre \"Attentes d'indisponibilit\xE9\"\n"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += " sous-titre \"Attentes totales\"\n"; } g += " animation non\n"; g += " legende " + "oui" + "\n"; + + g += " marges\n {\n"; + g += " gauche 100\n"; g += " droite 100\n"; g += " haut 50\n"; g += " bas 30\n }\n"; /* * g += " marges\n {\n"; g += " gauche " + ((Integer)preference.dlgParamAff.tfMargeG.getValue()).intValue() + "\n"; * g += " droite " + ((Integer)preference.dlgParamAff.tfMargeD.getValue()).intValue() + "\n"; g += " haut " + @@ -1416,8 +1514,8 @@ */ g += " axe\n {\n"; // abscisses - g += " titre \" cat." + "\"\n"; - g += " unite \" Categories \"\n"; + g += " titre \"El\xE9ment" + "\"\n"; + g += " unite \"num\xE9ro\"\n"; g += " orientation " + "horizontal" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -1429,8 +1527,8 @@ g += " }\n"; g += " axe\n {\n"; // Ordonn\xE9es - g += " titre \" dur\xE9es" + "\"\n"; - g += " unite \"" + " H.Min" + "\"\n"; + g += " titre \"Dur\xE9e" + "\"\n"; + g += " unite \"" + "h.min" + "\"\n"; g += " orientation " + "vertical" + "\n"; g += " graduations oui\n"; g += " minimum " + 0 + "\n"; @@ -1451,16 +1549,16 @@ g += " courbe\n {\n"; g += " titre \""; - if (this.choixSecurite_.isSelected()) { - g += " attentes S\xE9curit\xE9 maxi"; - } else if (this.choixAcces_.isSelected()) { - g += "attentes Acc\xE8s maxi"; - } else if (this.choixOccupation_.isSelected()) { - g += " attentes Occupations maxi"; - } else if (this.choixPannes_.isSelected()) { - g += " attentes Indispo maxi"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " attentes totale maxi"; + if (this.choixSecurite2_.isSelected()) { + g += "Attentes de s\xE9curit\xE9 maximales"; + } else if (this.choixAcces2_.isSelected()) { + g += "Attentes d'acc\xE8s maximales"; + } else if (this.choixOccupation2_.isSelected()) { + g += "Attentes d'occupation maximales"; + } else if (this.choixPannes2_.isSelected()) { + g += "Attentes d'indisponibilit\xE9 maximales"; + } else if (this.choixTotalAttente2_.isSelected()) { + g += "Attentes totales maximales"; } // g += "dur\xE9es maxi"; /* @@ -1481,31 +1579,31 @@ */ compteurElem = 0; for (int n = 0; n < this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories.length; n++) { - if ((this.choixChenal_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) - || (this.choixEcluse_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) + if ((this.choixChenal2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 0) + || (this.choixEcluse2_.isSelected() && this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].typeElement == 1) ) { g += (compteurElem + 1)// numero de la cat\xE9gorie + " "; compteurElem++; - if (this.choixSecurite_.isSelected()) { + if (this.choixSecurite2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteSecuMaxi); - } else if (this.choixAcces_.isSelected()) { + } else if (this.choixAcces2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteAccesMaxi); - } else if (this.choixOccupation_.isSelected()) { + } else if (this.choixOccupation2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteOccupMaxi); - } else if (this.choixPannes_.isSelected()) { + } else if (this.choixPannes2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attentePanneMaxi); - } else if (this.choixTotalAttente_.isSelected()) { + } else if (this.choixTotalAttente2_.isSelected()) { g += Sinavi3TraduitHoraires .traduitMinutesEnHeuresMinutes((float) this.donnees_.params_.ResultatsCompletsSimulation.AttentesTousElementsToutesCategories[n].tableauAttenteCategories[this.ListeNavires_ .getSelectedIndex()].attenteTotaleMaxi); @@ -1538,16 +1636,16 @@ g += " courbe\n {\n"; g += " titre \""; - if (this.choixSecurite_.isSelected()) { - g += " attentes S\xE9curit\xE9 moyenne"; - } else if (this.choixAcces_.isSelected()) { - g += "attentes Acc\xE8s moyenne"; - } else if (this.choixOccupation_.isSelected()) { - g += " attentes Occupations moyenne"; - } else if (this.choixPannes_.isSelected()) { - g += " attentes Indispo moyenne"; - } else if (this.choixTotalAttente_.isSelected()) { - g += " attentes totale moyenne"; + if (this.choixSecurite2_.isSelected()) { + g += "attentes de s\xE9curit\xE9 moyennes"; + } else if (this.choixAcces2_.isSelected()) { + g += "attentes d'acc\xE8s moyennes"; + } else if (this.choixOccupation2_.isSelected()) { + g += "attentes d'occupation moyennes"; + } else if (this.choixPannes2_.isSelected()) { + g += "attentes d'indisponibilit\xE9 moyennes"; + } else if ... [truncated message content] |