From: <had...@us...> - 2009-01-16 08:29:01
|
Revision: 4375 http://fudaa.svn.sourceforge.net/fudaa/?rev=4375&view=rev Author: hadouxad Date: 2009-01-16 08:28:57 +0000 (Fri, 16 Jan 2009) Log Message: ----------- Modified Paths: -------------- branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java 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 2009-01-16 08:25:37 UTC (rev 4374) +++ branches/Prepro-0.92-SNAPSHOT/fudaa/src/org/fudaa/fudaa/commun/courbe/FudaaCourbeImporterScope.java 2009-01-16 08:28:57 UTC (rev 4375) @@ -1,12 +1,24 @@ package org.fudaa.fudaa.commun.courbe; +import java.awt.event.ActionEvent; import java.io.File; import org.fudaa.ctulu.CtuluCommandManager; import org.fudaa.ctulu.ProgressionInterface; import org.fudaa.dodico.mesure.EvolutionReguliere; import org.fudaa.dodico.telemac.io.ScopeStructure; +import org.fudaa.ebli.commun.EbliActionSimple; +import org.fudaa.ebli.courbe.EGCourbeChild; +import org.fudaa.ebli.courbe.EGCourbeModelDefault; +import org.fudaa.ebli.courbe.EGGraphe; +import org.fudaa.ebli.courbe.EGGrapheTreeModel; +import org.fudaa.ebli.courbe.EGGroup; +import org.fudaa.ebli.courbe.EGModel; +import org.fudaa.fudaa.commun.impl.FudaaCommonImplementation; +import com.memoire.bu.BuResource; +import com.memoire.bu.BuWizardDialog; + /** * Gere l'importation de donn\xE9es scope s ou t et cr\xE9e un graphe temporel ou spatial selon le format * S'utilise avec le wizard FudaaCourbeWizardImportScope @@ -17,15 +29,15 @@ /** * Action qui genere un wizard pour le parametrage des structures import\xE9es. - * @param _fileChosen - * @param target - * @param _data - * @param _mng - * @param _prog - * @param nuagePoints + * @author Adrien Hadoux + * */ - public static void createGraphe(File _fileChosen,FudaaCourbeImporter.Target target,ScopeStructure _data, CtuluCommandManager _mng,ProgressionInterface _prog,boolean nuagePoints){ - createGraphe(target,_data.returnEvolReguliere(_fileChosen), _mng, _prog,nuagePoints); + + + public static void createGraphe(File fichier,FudaaCourbeImporter.Target target,ScopeStructure _data, CtuluCommandManager _mng,ProgressionInterface _prog,boolean nuagePoints){ + + + createGraphe(target,_data.returnEvolReguliere(fichier), _mng, _prog,nuagePoints); } public static void createGraphe(FudaaCourbeImporter.Target target,EvolutionReguliere[] _data, CtuluCommandManager _mng,ProgressionInterface _prog,boolean nuagePoints){ @@ -42,43 +54,43 @@ -// /** -// * genere un graphe spatial -// * @param data_ -// * @return -// */ -// public static void createGrapheSpatialGrapheOLD(FudaaCourbeImporter.Target target,ScopeStructure.SorT data_,ProgressionInterface prog){ -// -// EGGrapheTreeModel model=new EGGrapheTreeModel(); -// double[] tabX=new double[data_.getAllX().size()]; -// for(int i=0;i<data_.getAllX().size();i++) -// tabX[i]=data_.getX(i); -// -// -// for(int i=0;i<data_.getNbVariables();i++){ -// -// EGGroup varg=new EGGroup(); -// varg.setTitle(data_.getVariable(i)); -// model.add(varg); -// -// //--remplissage de valeurs --// -// //tableau des y -// double[] tabY=new double[tabX.length]; -// -// for(int j=0;j<tabX.length;j++) -// tabY[j]=data_.getValueOfvariable(i, j); -// EGCourbeModelDefault modelCourbe=new EGCourbeModelDefault(tabX,tabY); -// EGCourbeChild courbe=new EGCourbeChild(varg,modelCourbe); -// -// varg.addEGComponent(courbe); -// -// } -// -// -// EGGraphe graphe=new EGGraphe(model); -// -// -// -// } + /** + * genere un graphe spatial + * @param data_ + * @return + */ + public static void createGrapheSpatialGrapheOLD(FudaaCourbeImporter.Target target,ScopeStructure.SorT data_,ProgressionInterface prog){ + + EGGrapheTreeModel model=new EGGrapheTreeModel(); + double[] tabX=new double[data_.getAllX().size()]; + for(int i=0;i<data_.getAllX().size();i++) + tabX[i]=data_.getX(i); + + + for(int i=0;i<data_.getNbVariables();i++){ + + EGGroup varg=new EGGroup(); + varg.setTitle(data_.getVariable(i)); + model.add(varg); + + //--remplissage de valeurs --// + //tableau des y + double[] tabY=new double[tabX.length]; + + for(int j=0;j<tabX.length;j++) + tabY[j]=data_.getValueOfvariable(i, j); + EGCourbeModelDefault modelCourbe=new EGCourbeModelDefault(tabX,tabY); + EGCourbeChild courbe=new EGCourbeChild(varg,modelCourbe); + + varg.addEGComponent(courbe); + + } + + + EGGraphe graphe=new EGGraphe(model); + + + + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |