From: <had...@us...> - 2008-12-12 18:12:43
|
Revision: 4299 http://fudaa.svn.sourceforge.net/fudaa/?rev=4299&view=rev Author: hadouxad Date: 2008-12-12 18:12:39 +0000 (Fri, 12 Dec 2008) Log Message: ----------- - Resolution bug des menus du calques: les 3 (navigation,dessin,..) sont toujours pr?\195?\169sent lors du chargement/duplication - Correction affichage wizard scope: on peut visualiser les couples choisis pour scopGene/transfo profil spatial - Cr?\195?\169ation de l'option du menu configurer qui rend transparent les widget: cela marche avec le syst?\195?\168me widgetConfigure et TRANSPARENT est une propri?\195?\169t?\195?\169 graphique des widget (a l'instar de color, traceligne...) Gestion de l'info dans la sauvegarde. - Cr?\195?\169ation de l'option nuage de points pour tous les graphes et bien sur pour le bug 31b.(ajout dans l'interface des corr?\195?\169lations) Cette option est ?\195?\169galement sauvegard?\195?\169e dans le projet. - Correction des l?\195?\169gendes et titres pour les formats scope. Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliere.java branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereAbstract.java branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereInterface.java branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereTFixe.java branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/telemac/io/ScopeStructure.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbePersist.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGSpecificActions.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/palette/PaletteSelecteurCouleurPlage.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordureSingle.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/WidgetConfigure.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/WidgetLegendeManager.java branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/persist/EbliWidgetSerializeXml.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeWizardImportScope.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrCourbeTemporelleManager.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrEvolutionManager.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanelPersistManager.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardCreateScope.java branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardImportScope.java Modified: branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliere.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliere.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliere.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -34,11 +34,22 @@ */ public class EvolutionReguliere extends EvolutionReguliereAbstract { - private class CommandAdd implements CtuluCommand { + private boolean nuagePoints_=false; + + public boolean isNuagePoints() { + return nuagePoints_; + } + + public void setNuagePoints_(boolean nuagePoints_) { + this.nuagePoints_ = nuagePoints_; + } + +private class CommandAdd implements CtuluCommand { + private final double newX_; private final double newY_; - + /** * @param _newX la nouvelle valeur ajoutee * @param _newY Modified: branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereAbstract.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereAbstract.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereAbstract.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -80,6 +80,8 @@ return false; } + public abstract boolean isNuagePoints(); + /** * Initialise les tableaux et le nom. * Modified: branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereInterface.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereInterface.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereInterface.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -118,7 +118,7 @@ */ int getUsed(); - + public boolean isNuagePoints(); /** * @param _e l'evolution a comparer Modified: branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereTFixe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereTFixe.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/mesure/EvolutionReguliereTFixe.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -65,4 +65,10 @@ return super.isEquivalentTo(_e); } +@Override +public boolean isNuagePoints() { + // TODO Auto-generated method stub + return false; +} + } \ No newline at end of file Modified: branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/telemac/io/ScopeStructure.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/telemac/io/ScopeStructure.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/dodico/src/org/fudaa/dodico/telemac/io/ScopeStructure.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -21,6 +21,10 @@ public abstract EvolutionReguliere[] returnEvolReguliere(); + public abstract String getTitleFormFile(); + + + /** * Structure pour les fichiers s ou t Par convention les x sont les premieres * variables. @@ -254,6 +258,16 @@ System.err.print("\n" + getListValuesofAllVariable(i)); } + +@Override +public String getTitleFormFile() { + // TODO Auto-generated method stub + String title=""; + for(String partie:titles_) + title+=" "+partie; + + return title; +} } @@ -352,8 +366,16 @@ insertX(x, pdt); } + @Override + public String getTitleFormFile() { + // TODO Auto-generated method stub + String title=""; + for(String partie:titles_) + title+=" "+partie; + + return title; + } - public void addSeparator(String ligne) { ligne = ligne.replace(KEY.getBlocCommentaireGENE(), ""); @@ -499,6 +521,7 @@ evolReg[i] = new EvolutionReguliere(tabX, tabY, false); evolReg[i].setNom("courbe de " + nomVar); + evolReg[i].setUnite(nomVar); } } @@ -545,8 +568,8 @@ } evolReg[i] = new EvolutionReguliere(tabX, tabY, false); evolReg[i].setNom("courbe de " + nomVar); + evolReg[i].setUnite(nomVar); - } return evolReg; @@ -574,8 +597,8 @@ } evolReg[0] = new EvolutionReguliere(tabX, tabY, false); - evolReg[0].setNom("courbe corr\xE9l\xE9e X="+getVariable(varX+1)+"/Y="+getVariable(varY+1)); - + evolReg[0].setNom("cor\xE9lation:(X="+getVariable(varX+1)+"//Y="+getVariable(varY+1)+")"); + evolReg[0].setUnite(getVariable(varX+1)); return evolReg; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbe.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -380,6 +380,15 @@ getEGParent().descendre(this); } + /** + * Boolean si oui ou non le graphe est un nuage de points + */ + protected boolean nuagePoints_=false; + /** + * Taille des points du nuages symbolis\xE9s par des carr\xE9s. + */ + protected int largeurPointsNuage_=5; + public void dessine(final Graphics2D _g, final EGRepere _t) { if (!isVisible_) { return; @@ -433,8 +442,17 @@ rangeDisplayed.expandToInclude(xi, yi); } paintSurface(_g, _t, i); - trLigne.dessineTrait(_g, xie, yie, xpe, ype); - + + if(!nuagePoints_) + trLigne.dessineTrait(_g, xie, yie, xpe, ype); + else{ + //-- trace un + --// + //-- ligne | --// + trLigne.dessineTrait(_g, xie, yie-largeurPointsNuage_/2, xie, yie+largeurPointsNuage_/2); + //--ligne - --// + trLigne.dessineTrait(_g, xie-largeurPointsNuage_/2, yie, xie+largeurPointsNuage_/2, yie); + //dessineRectangle(_g, xie-largeurPointsNuage_/2, yie-largeurPointsNuage_/2, largeurPointsNuage_, largeurPointsNuage_); + } } xpVisible = xiVisible; xpe = xie; @@ -445,7 +463,15 @@ traceTitle(_g, _t, rangeDisplayed); } - public void enDernier() { + public boolean isNuagePoints_() { + return nuagePoints_; +} + +public void setNuagePoints_(boolean nuagePoints_) { + this.nuagePoints_ = nuagePoints_; +} + +public void enDernier() { getEGParent().enDernier(this); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbePersist.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbePersist.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGCourbePersist.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -12,6 +12,7 @@ String title_; int Idgroup; + boolean nuagePoints=false; ///-- les min et max sont purement informatifs --// double Xmin; double Xmax; @@ -33,6 +34,7 @@ private void fillInfoWith(EGCourbeChild courbe,int idgroupe){ this.Idgroup=idgroupe; title_=courbe.getTitle(); + this.nuagePoints=courbe.isNuagePoints_(); Xmin = courbe.getModel().getXMin(); Xmax = courbe.getModel().getXMax(); Ymin = courbe.getModel().getYMin(); @@ -74,6 +76,7 @@ if(tLigneMarqueur_!=null) courbe.setLigneMark(tLigneMarqueur_); + courbe.setNuagePoints_(this.nuagePoints); return courbe; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGSpecificActions.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGSpecificActions.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/courbe/EGSpecificActions.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -116,6 +116,16 @@ menu_.addMenuItem(EbliResource.EBLI.getString("Copier la courbe pour un autre jeu de donn\xE9es"), getCopieSrc(), EbliResource.EBLI.getIcon("crystal_copier"), true, this); + if(nbSelected==1){ + EGCourbe courbe=m.getSelectedComponent(); + if(!courbe.nuagePoints_) + menu_.addMenuItem(EbliResource.EBLI.getString("Nuage de points"), "NUAGE_POINTS", EbliResource.EBLI.getIcon("curves") + , true, this); + else + menu_.addMenuItem(EbliResource.EBLI.getString("Courbe classique"), "NUAGE_POINTS", BuResource.BU + .getIcon("crystal_oscilloscope"), true, this); + } + } @@ -151,6 +161,10 @@ if (n == 1) { target_.getModel().duplicateCourbe(cmd_, target_.getSelectedComponent()); } + }else if("NUAGE_POINTS".equals(com)){ + //-- on permutte entre nuage de points et classique --// + target_.getSelectedComponent().nuagePoints_=!target_.getSelectedComponent().nuagePoints_; + target_.getModel().fireCourbeAspectChanged(null, false); } else if ("COPIESRC".equals(com)) { target_.getModel().duplicateCourbeForSrc(cmd_, target_.getSelectedComponent()); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/palette/PaletteSelecteurCouleurPlage.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/palette/PaletteSelecteurCouleurPlage.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/palette/PaletteSelecteurCouleurPlage.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -137,9 +137,12 @@ final int oldSize = plages_.size(); plages_.clear(); fireAllSupr(oldSize); - for (int i = 0; i < nb; i++) { - plages_.add(_pal.getPlageInterface(i).copy()); - } +// for (int i = 0; i < nb; i++) { +// plages_.add(_pal.getPlageInterface(i).copy()); +// } + for (int i = nb-1; i >= 0; i--) { + plages_.add(_pal.getPlageInterface(i).copy()); + } fireAdd(0, nb - 1); isAdjusting_ = false; list_.setSelectedIndex(0); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidget.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -48,6 +48,8 @@ public final static String ROTATION = "rotation"; + public final static String TRANSPARENCE = "Transpa"; + protected EbliWidgetController controller_; /** * L'identifiant unique du widget @@ -92,6 +94,10 @@ // -- ajout de l angle de rotation par default PI --// propGraphique.put(ROTATION, Math.PI); + + //-- ajout de la trnaparence a false --// + propGraphique.put( EbliWidget.TRANSPARENCE,false); + } /** @@ -112,8 +118,19 @@ } - public boolean canColorBackground() { - return true; + + + + public boolean getTransparent() { + return (Boolean) propGraphique.get(TRANSPARENCE); +} + +public void setTransparent(boolean transparent) { + propGraphique.put(TRANSPARENCE, new Boolean(transparent)); +} + +public boolean canColorBackground() { + return true && !getTransparent(); } public boolean canColorForeground() { @@ -185,6 +202,7 @@ mapDupliquee.put(COLORFOND, getColorFond()); mapDupliquee.put(ROTATION, getRotation()); mapDupliquee.put(FONT, getFormeFont()); + mapDupliquee.put(TRANSPARENCE, getTransparent()); return mapDupliquee; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordureSingle.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordureSingle.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetBordureSingle.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -120,7 +120,7 @@ final TraceLigne l = new TraceLigne(getTraceLigneModel()); // // --test on autorise que si son widget fils le permet --// - if (this.getIntern().canColorBackground()) { + if (this.getIntern().canColorBackground() && !this.getTransparent()) { getGraphics().setColor(getColorFond()); getGraphics().fillRect(0, 0, (int) (rec.width - l.getEpaisseur()), (int) (rec.height - l.getEpaisseur())); } @@ -205,7 +205,7 @@ @Override protected void setPropertyCmd(final String _key, final Object _prop, final CtuluCommandContainer _cmd) { - if (_key.equals(LINEMODEL) || _key.equals(COLORCONTOUR) || _key.equals(COLORFOND)) { + if (_key.equals(LINEMODEL) || _key.equals(COLORCONTOUR) || _key.equals(COLORFOND) ||_key.equals(TRANSPARENCE)) { super.setPropertyCmd(_key, _prop, _cmd); } else { intern_.setPropertyCmd(_key, _prop, _cmd); @@ -226,6 +226,7 @@ mapMeltingPot.put(ROTATION, intern_.getRotation()); mapMeltingPot.put(FONT, intern_.getFormeFont()); mapMeltingPot.put(COLORFOND, intern_.getColorFond()); + mapMeltingPot.put(TRANSPARENCE, intern_.getTransparent()); return mapMeltingPot; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/EbliWidgetTextEditor.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -50,9 +50,16 @@ final EbliWidgetControllerTextEditor controller = new EbliWidgetControllerTextEditor(this); controller.setEditable(true); setController(controller); + } - public boolean canRotate() { +// @Override +//public boolean canColorBackground() { +// // TODO Auto-generated method stub +// return false; +//} + +public boolean canRotate() { return false; } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/WidgetConfigure.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/WidgetConfigure.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/actions/WidgetConfigure.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -11,6 +11,7 @@ import org.fudaa.ebli.commun.EbliLib; import org.fudaa.ebli.controle.BConfigurableComposite; import org.fudaa.ebli.controle.BConfigurableInterface; +import org.fudaa.ebli.controle.BSelecteurCheckBox; import org.fudaa.ebli.controle.BSelecteurColorChooserBt; import org.fudaa.ebli.controle.BSelecteurFont; import org.fudaa.ebli.controle.BSelecteurInterface; @@ -130,6 +131,12 @@ listeComposants.add(modelF); } + + + BSelecteurCheckBox selectionTransparence=new BSelecteurCheckBox(EbliWidget.TRANSPARENCE, "Transparence"); + + listeComposants.add(selectionTransparence); + final BSelecteurInterface[] tableau = new BSelecteurInterface[listeComposants.size()]; return listeComposants.toArray(tableau); } Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/calque/CalqueLegendeWidgetAdapter.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -98,7 +98,7 @@ final Widget ws = new Widget(_scene); ws.setLayout(new FlowLayout(true, SerialAlignment.LEFT_TOP, 5)); if (listeplages.getNbPlages() != 0) { - for (int j = 0; j < listeplages.getNbPlages(); j++) { + for (int j = listeplages.getNbPlages()-1; j >=0 ; j--) { final BPlageInterface plage = listeplages.getPlageInterface(j); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/WidgetLegendeManager.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/WidgetLegendeManager.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/graphe/WidgetLegendeManager.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -86,16 +86,16 @@ return newBounds; } - - + + boolean suppressionOccured=false; - + public void majSuppression(){ suppressionOccured=true; repaint(); } - + @Override protected void paintWidget() { @@ -213,84 +213,89 @@ // le gap // res.setLayout(new OverlayLayout()); for (int i = 0; i < cs.length; i++) { - final EbliWidget line = new EbliWidget(scene); - line.setLayout(new FlowLayout(false, SerialAlignment.CENTER, 5)); - // creation de la widget titre - final EbliWidgetTitle tw = new EbliWidgetTitle(scene, cs[i], null); + if(cs[i].getTitle().equals("X")||cs[i].getTitle().equals("Y")){ + //-- on n'affiche pas les l\xE9gendes X et Y + }else{ + final EbliWidget line = new EbliWidget(scene); + line.setLayout(new FlowLayout(false, SerialAlignment.CENTER, 5)); - // creation de la widget ligne - final EbliWidgetLine lw = new EbliWidgetLine(scene, cs[i], null); - line.setUseBorder(false); - lw.setUseBorder(false); - tw.setUseBorder(false); + // creation de la widget titre + final EbliWidgetTitle tw = new EbliWidgetTitle(scene, cs[i], null); - lw.setEnabled(false); - line.addChild(lw); - line.addChild(tw); - res.addChild(line); + // creation de la widget ligne + final EbliWidgetLine lw = new EbliWidgetLine(scene, cs[i], null); + line.setUseBorder(false); + lw.setUseBorder(false); + tw.setUseBorder(false); - // -- ajouter le listener EGGraphe pour ecouter et \xE9ettre a jour els - // l\xE9gendes --// - g.getModel().addModelListener(new EGGrapheModelListener() { + lw.setEnabled(false); + line.addChild(lw); + line.addChild(tw); + res.addChild(line); - public void structureChanged() { - if(g.getModel().contains(lw.cb_)){ - line.repaint(); - tw.majLabel(); - }else{ - //-- il faut supprimer --// - res.removeChild(line); - res.majSuppression(); + // -- ajouter le listener EGGraphe pour ecouter et \xE9ettre a jour els + // l\xE9gendes --// + g.getModel().addModelListener(new EGGrapheModelListener() { + + public void structureChanged() { + if(g.getModel().contains(lw.cb_)){ + line.repaint(); + tw.majLabel(); + }else{ + //-- il faut supprimer --// + res.removeChild(line); + res.majSuppression(); + } + } - } + public void courbeContentChanged(final EGObject _c, final boolean restore) { + if(g.getModel().contains(lw.cb_)){ + line.repaint(); + tw.majLabel(); + }else{ + //-- il faut supprimer --// + res.removeChild(line); + res.majSuppression(); + } + } - public void courbeContentChanged(final EGObject _c, final boolean restore) { - if(g.getModel().contains(lw.cb_)){ - line.repaint(); - tw.majLabel(); - }else{ - //-- il faut supprimer --// - res.removeChild(line); - res.majSuppression(); + public void courbeAspectChanged(final EGObject _c, final boolean _visibil) { + if(g.getModel().contains(lw.cb_)){ + line.repaint(); + tw.majLabel(); + }else{ + //-- il faut supprimer --// + res.removeChild(line); + res.majSuppression(); + } } - } - public void courbeAspectChanged(final EGObject _c, final boolean _visibil) { - if(g.getModel().contains(lw.cb_)){ - line.repaint(); - tw.majLabel(); - }else{ - //-- il faut supprimer --// - res.removeChild(line); - res.majSuppression(); + public void axeContentChanged(final EGAxe _c) { + if(g.getModel().contains(lw.cb_)){ + line.repaint(); + tw.majLabel(); + }else{ + //-- il faut supprimer --// + res.removeChild(line); + res.majSuppression(); + } } - } - public void axeContentChanged(final EGAxe _c) { - if(g.getModel().contains(lw.cb_)){ - line.repaint(); - tw.majLabel(); - }else{ - //-- il faut supprimer --// - res.removeChild(line); - res.majSuppression(); + public void axeAspectChanged(final EGAxe _c) { + if(g.getModel().contains(lw.cb_)){ + line.repaint(); + tw.majLabel(); + }else{ + //-- il faut supprimer --// + res.removeChild(line); + res.majSuppression(); + } } - } + }); - public void axeAspectChanged(final EGAxe _c) { - if(g.getModel().contains(lw.cb_)){ - line.repaint(); - tw.majLabel(); - }else{ - //-- il faut supprimer --// - res.removeChild(line); - res.majSuppression(); - } - } - }); - + } } res.setController(new EbliWidgetControllerMenuOnly(res, false)); Modified: branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/persist/EbliWidgetSerializeXml.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/persist/EbliWidgetSerializeXml.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/ebli/src/org/fudaa/ebli/visuallibrary/persist/EbliWidgetSerializeXml.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -57,7 +57,7 @@ Color colorModel; Font font; double rotation; - + boolean transparent=false; /** * Donn\xE9es du traceligneModel */ @@ -115,7 +115,7 @@ this.typeTrait = widget.getParentBordure().getTraceLigneModel().getTypeTrait(); this.colorModel = widget.getParentBordure().getTraceLigneModel().getCouleur(); } - + this.transparent=widget.getParentBordure().getTransparent(); // --cas particulier, si widget non visible les dimension bonnes sont celles du parent preferredbounds--// if (!widget.getParentBordure().isVisible()) { if (widget.getParentBordure().getPreferredBounds() != null) { @@ -180,6 +180,7 @@ newNode.getWidget().setFormeFont(font); newNode.getWidget().setColorContour(foreground); newNode.getWidget().setRotation(rotation); + newNode.getWidget().setTransparent(transparent); final TraceLigneModel model = new TraceLigneModel(typeTrait, epaisseurTrait, colorModel); newNode.getWidget().setTraceLigneModel(model); newNode.getWidget().getParentBordure().setVisible(isVisible); @@ -356,4 +357,12 @@ IdGroup = idGroup; } +public boolean isTransparent() { + return transparent; } + +public void setTransparent(boolean transparent) { + this.transparent = transparent; +} + +} Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -33,14 +33,20 @@ */ - public static void createGraphe(FudaaCourbeImporter.Target target,ScopeStructure _data, CtuluCommandManager _mng,ProgressionInterface _prog){ + public static void createGraphe(FudaaCourbeImporter.Target target,ScopeStructure _data, CtuluCommandManager _mng,ProgressionInterface _prog,boolean nuagePoints){ - createGraphe(target,_data.returnEvolReguliere(), _mng, _prog); + createGraphe(target,_data.returnEvolReguliere(), _mng, _prog,nuagePoints); } - public static void createGraphe(FudaaCourbeImporter.Target target,EvolutionReguliere[] _data, CtuluCommandManager _mng,ProgressionInterface _prog){ + public static void createGraphe(FudaaCourbeImporter.Target target,EvolutionReguliere[] _data, CtuluCommandManager _mng,ProgressionInterface _prog,boolean nuagePoints){ + //-- on indique si il faut prendre en compte comme \xE9tant un nuage de points --// + if(nuagePoints){ + for(int i=0;i<_data.length;i++){ + _data[i].setNuagePoints_(nuagePoints); + } + } target.importCourbes(_data, _mng, _prog); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeWizardImportScope.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeWizardImportScope.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeWizardImportScope.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -13,6 +13,7 @@ import javax.swing.AbstractAction; import javax.swing.BorderFactory; import javax.swing.DefaultListModel; +import javax.swing.JCheckBox; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JLabel; @@ -39,6 +40,7 @@ import org.fudaa.dodico.telemac.io.ScopeTFileFormat; import org.fudaa.ebli.commun.EbliActionSimple; import org.fudaa.ebli.courbe.EGGraphe; +import org.fudaa.ebli.ressource.EbliResource; import org.fudaa.fudaa.commun.FudaaLib; import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; import org.fudaa.fudaa.commun.impl.FudaaGuiLib; @@ -77,7 +79,7 @@ */ int typeFormat_; File fileChoosen_=null; - ScopeStructure data_; + protected ScopeStructure data_; EGGraphe result_; //choix du fichier @@ -401,6 +403,8 @@ } + + JCheckBox choixNuagePoints_; /** * Creation du panel scopGene pour choisir ses parametres * @return @@ -549,8 +553,10 @@ //-- panel reserv\xE9s au corr\xE9lations --// + JPanel panelCorrelation=new JPanel(new BorderLayout()); JPanel paramCorrel=new JPanel(new GridLayout(2,2)); - container.add(paramCorrel, TrResource.getS("Corr\xE9lation")); + panelCorrelation.add(paramCorrel,BorderLayout.CENTER); + container.add(panelCorrelation, TrResource.getS("Corr\xE9lation")); listeVar=new String[dataG().getNbVariables()-1]; for(int i=1;i<dataG().getNbVariables();i++) @@ -585,6 +591,9 @@ pane.setBorder(BorderFactory.createTitledBorder(TrResource.getS("Plage associ\xE9e \xE0 la variable Y"))); paramCorrel.add(pane); + choixNuagePoints_=new JCheckBox(EbliResource.EBLI.getString("Nuage de points")); + panelCorrelation.add(choixNuagePoints_,BorderLayout.SOUTH); + return content2; } @@ -654,7 +663,7 @@ dataST().restreindreStructure(listVariablesST_.getSelectedIndices(),Double.parseDouble(plageDeb_.getText()),Double.parseDouble(plageFin_.getText())); impl_.setMainProgression(30); impl_.setMainMessage(CtuluLib.getS("Cr\xE9ation du graphe")); - FudaaCourbeImporterScope.createGraphe(target_, data_, null, prog); + FudaaCourbeImporterScope.createGraphe(target_, data_, null, prog,false); } else{ //-- format scopeGen, selon le type de format g\xE9n\xE9r\xE9--// @@ -666,7 +675,7 @@ impl_.setMainProgression(30); impl_.setMainMessage(CtuluLib.getS("Cr\xE9ation du graphe")); - FudaaCourbeImporterScope.createGraphe(target_, tabEvol, null, prog); + FudaaCourbeImporterScope.createGraphe(target_, tabEvol, null, prog,false); }else if(comBoChoixTypeGraphe_.getSelectedIndex()==1){ //evol temporelle @@ -679,7 +688,7 @@ impl_.setMainProgression(30); impl_.setMainMessage(CtuluLib.getS("Cr\xE9ation du graphe")); //on cree les evol reguliere SPECIFIQUES pour ces courbes. - FudaaCourbeImporterScope.createGraphe(target_, dataG().returnEvolRegulierePourTemporelles(), null, prog); + FudaaCourbeImporterScope.createGraphe(target_, dataG().returnEvolRegulierePourTemporelles(), null, prog,false); }else{ //correlation @@ -692,7 +701,10 @@ int plageX=listSeparatorCorrel1_.getSelectedIndex(); int plageY=listSeparatorCorrel2_.getSelectedIndex(); - FudaaCourbeImporterScope.createGraphe(target_, dataG().returnEvolReguliereCorrelation(varX,varY,plageX,plageY), null, prog); + //-- recuperation du choix nuage de points ou non + boolean nuagePoints=choixNuagePoints_.isSelected(); + + FudaaCourbeImporterScope.createGraphe(target_, dataG().returnEvolReguliereCorrelation(varX,varY,plageX,plageY), null, prog,nuagePoints); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileTreeModel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileTreeModel.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/meshviewer/profile/MvProfileTreeModel.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -656,6 +656,10 @@ final List<EGCourbeChild> childs = new ArrayList<EGCourbeChild>(_crb.length); for (int i = 0; i < _crb.length; i++) { final EGCourbeChild child = new EGCourbeChild(gr, new FudaaCourbeModel(new EvolutionReguliere(_crb[i]))); + + //-- on met a jour si la courbe est un nuage de points ou non --// + child.setNuagePoints_(_crb[i].isNuagePoints()); + childs.add(child); gr.addEGComponent(child); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrCourbeTemporelleManager.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrCourbeTemporelleManager.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrCourbeTemporelleManager.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -141,6 +141,10 @@ final EGCourbeChild courbe = new EGCourbeChild(_g, new FudaaCourbeModel(_e)); // courbe.setTitre(_e.getNom()); courbe.setAspectContour(BPalettePlageDefault.getColor(_idx)); + + //-- on met a jour si la courbe est un nuage de points ou non --// + courbe.setNuagePoints_(_e.isNuagePoints()); + if (_g == null) { groupNull_.addEGComponent(courbe); } else { Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrEvolutionManager.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrEvolutionManager.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/common/TrEvolutionManager.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -97,6 +97,11 @@ final FudaaCourbeModel m = new FudaaCourbeModel(_e); testEvolutionAdded(_e); final EGCourbeSimple c = new EGCourbeSimple(_v, m); + + //-- on met a jour si la courbe est un nuage de points ou non --// + c.setNuagePoints_(_e.isNuagePoints()); + + // c.setTitre(m.e_.getNom()); c.setAspectContour(BPalettePlageDefault.getColor(getNbEGObject())); return c; Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostCourbeTreeModel.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -657,6 +657,10 @@ for (int i = 0; i < _crb.length; i++) { final EGCourbeChild child = new EGCourbeChild(gr, new FudaaCourbeModel(new EvolutionReguliere(_crb[i]))); childs.add(child); + + //-- on met a jour si la courbe est un nuage de points ou non --// + child.setNuagePoints_(_crb[i].isNuagePoints()); + gr.addEGComponent(child); } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostProjet.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -909,7 +909,10 @@ public void addGrapheNodeInCurrentScene(final EGFillePanel _pn, final String _desc) { final EbliNodeDefault nodeG = new EbliNodeDefault(); nodeG.setCreator(new EbliWidgetCreatorGraphe(_pn)); + if(_desc==null) nodeG.setTitle("Graphe " + idxFilleG_++); + else + nodeG.setTitle("Graphe " + (idxFilleG_++)+":"+_desc); nodeG.setPreferedSize(new Dimension(600, 400)); nodeG.setPreferedLocation(new Point(20, 20)); Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanel.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -326,6 +326,9 @@ // -- chargement de l etat dans le calque duplique --// duplic.getDonneesCalque().getPersistenceMng().restore(savedData, duplic, duplic.getDonneesCalque(), null); + //-- creation des actions specifiques au calque --// + duplic.getController().buildActions(); + return duplic; } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanelPersistManager.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanelPersistManager.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/TrPostVisuPanelPersistManager.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -124,6 +124,9 @@ // if(zoom_!=null) // newPanel.getVueCalque().changeRepere(newPanel, zoom_); + //-- creation des actions specifiques au calque --// + newPanel.getController().buildActions(); + return newPanel; } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardCreateScope.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardCreateScope.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardCreateScope.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -45,7 +45,7 @@ final TrPostWizardCreateScope wizard = new TrPostWizardCreateScope(projet_, model); final BuWizardDialog DialogWizard = new BuWizardDialog(ui_.getFrame(), wizard); // --affichage du wizard --// - DialogWizard.setSize(600, 500); + DialogWizard.setSize(600, 600); DialogWizard.setLocationRelativeTo(ui_.getFrame()); DialogWizard.setVisible(true); } @@ -62,7 +62,7 @@ @Override public void createGraphImported() { final EGGraphe graphe = new EGGraphe(modelTarget_); - projet_.addGrapheNodeInCurrentScene(new EGFillePanel(graphe), "Graphe import\xE9 (format scope)"); + projet_.addGrapheNodeInCurrentScene(new EGFillePanel(graphe), data_.getTitleFormFile()); } } Modified: branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardImportScope.java =================================================================== --- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardImportScope.java 2008-12-12 17:04:43 UTC (rev 4298) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/tr/post/dialogSpec/TrPostWizardImportScope.java 2008-12-12 18:12:39 UTC (rev 4299) @@ -38,7 +38,7 @@ final TrPostWizardImportScope wizard = new TrPostWizardImportScope(projet_, target_); final BuWizardDialog DialogWizard = new BuWizardDialog(ui_.getFrame(), wizard); // --affichage du wizard --// - DialogWizard.setSize(600, 500); + DialogWizard.setSize(600, 600); DialogWizard.setLocationRelativeTo(ui_.getFrame()); DialogWizard.setVisible(true); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |