|
From: <de...@us...> - 2003-11-25 12:01:59
|
Update of /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/d1d2
In directory sc8-pr-cvs1:/tmp/cvs-serv3074/d1d2
Modified Files:
LidoReflux.java Profil1D2D.java
Log Message:
reformat all files
Index: LidoReflux.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/d1d2/LidoReflux.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** LidoReflux.java 23 Sep 2003 21:11:40 -0000 1.3
--- LidoReflux.java 25 Nov 2003 10:13:37 -0000 1.4
***************
*** 1,243 ****
! /*
! * @file LidoReflux.java
! * @creation 2000-02-01
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
!
! package org.fudaa.fudaa.d1d2;
!
! import org.fudaa.dodico.corba.reflux.*;
! import org.fudaa.dodico.corba.lido.*;
! import org.fudaa.dodico.reflux.*;
! import org.fudaa.dodico.lido.*;
! import org.fudaa.dodico.objet.*;
!
! import com.memoire.bu.*;
! import org.fudaa.fudaa.commun.*;
! import com.diaam.lgpl.ts.*;
! import org.fudaa.fudaa.lido.*;
! import org.fudaa.fudaa.reflux.*;
! import org.fudaa.fudaa.reflux.calcul.PRCalculReflux2d;
! import org.fudaa.fudaa.reflux.calcul.PRCalculReflux3d;
! import javax.swing.JFrame;
!
! /**
! * Point d'entrée de l'application LidoReflux
! *
! * @version $Revision$ $Date$ by $Author$
! * @author Bertrand Marchand
! */
! public class LidoReflux {
! final public static String[][] SOFTWARE_CLASSES=new String[][] {
! BuLib.SWING_CLASSES,
! BuLib.BU_CLASSES
! };
!
! // Informations sur Lido/Reflux
! public final static BuInformationsSoftware isD1d2_=new BuInformationsSoftware();
! static {
! isD1d2_.name ="Lido/Reflux";
! isD1d2_.version ="0.01";
! isD1d2_.date ="11-Fév-2000";
! isD1d2_.rights ="Tous droits réservés. GHN (c)1998-2000";
! isD1d2_.contact ="Ber...@ut...";
! isD1d2_.license ="";
! isD1d2_.logo =null;
! // isD1d2_.banner =RefluxResource.REFLUX.getIcon("reflux-banner");
! isD1d2_.banner =null;
! isD1d2_.ftp ="ftp://www.utc.fr/ghn/";
! isD1d2_.http ="http://www.utc.fr/ghn";
! isD1d2_.man ="http://www.utc.fr/manuels";
! isD1d2_.update ="http://www.utc.fr/ghn/fudaa/deltas/";
!
! isD1d2_.authors =new String[] {"Bertrand Marchand"};
! isD1d2_.contributors=null;
! isD1d2_.testers =null;
! }
!
! public static BuInformationsSoftware informationsSoftware()
! { return isD1d2_; }
!
! /**
! * Exécution de l'application
! */
! public static void main(String[] args)
! {
! System.out.println("Client Lido/Reflux");
!
! // Lecture des flags
! FudaaCommandLineParser flags=new FudaaCommandLineParser();
! args=flags.parse(args);
! if( args.length>0 ) {
! System.err.println("The flag "+args[0]+" is unknown");
! System.err.println("Flags: "+flags.flagTotalText());
! System.exit(1);
! }
!
! // Console système
! if( !flags.no_terminal ) {
! String ver=informationsSoftware().version;
! TerminalStandard ts = new TerminalStandard();
! ts.activeStandards();
! JFrame fts=new JFrame("Console");
! fts.setContentPane(ts);
! fts.pack();
! fts.show();
! String wlcmsg=
! "******************************************************************************\n"+
! "* Bienvenue dans Lido/Reflux "+ver+" *\n"+
! "* -------------------------- *\n"+
! "* Ceci est la console texte. Elle affiche tous les messages systeme: *\n"+
! "* erreurs, taches en cours. Consultez-la regulierement pour savoir *\n"+
! "* si le programme est actif, si une erreur s'est produite, ... *\n"+
! "* En cas d'erreur, joignez son contenu (enregistre dans le fichier ts.log) *\n"+
! "* au mail de notification de bogue, ceci nous aidera a comprendre. *\n"+
! "******************************************************************************\n\n";
! System.out.println(wlcmsg);
! }
!
! // Preferences
! BuInformationsSoftware il=informationsSoftware();
! BuPreferences.BU.applyLookAndFeel();
!
! // Network Check
! FudaaNetworkChecker nc=new FudaaNetworkChecker(il);
! nc.check();
!
! // Update
! // if( !flags.no_update ) {
! // FudaaUpdate update=new FudaaUpdate(RefondeImplementation.informationsSoftware());
! // update.setInstallMode(flags.jar_update?FudaaUpdate.JAR:FudaaUpdate.CLASS);
! // if( update.scanForUpdate() ) {
! // if( update.startUpdate() )
! // System.exit(0);
! // } else System.err.println("Refonde : no update");
! // }
!
! // Splash screen
! // BuSplashScreen ss=new BuSplashScreen
! // (RefondeImplementation.informationsSoftware(),
! // 3000,Refonde.SOFTWARE_CLASSES,
! // RefondeImplementation.class.getName());
! // ss.start();
! // ss.setProgression(0);
!
! // ss.setText("Recherche d'un serveur Refonde distant...");
!
! //--- Serveurs Lido ------------------------------------------------------
! /*
! if (!flags.no_server) {
! if (!flags.no_corba) {
! // ss.setText("Connexion au serveur Lido...");
! // ss.setProgression(0);
! System.out.println("Connexion au serveur Lido..");
! if (!flags.no_delay) {
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido", 30000));
! if( LidoImplementation.SERVEUR_LIDO==null ) {
! // ss.setText("Connexion au serveur Lido, deuxième tentative...");
! // ss.setProgression(30);
! System.out.println("Connexion au serveur Lido, deuxième tentative...");
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido", 30000));
! }
! } else {
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido"));
! }
! if( LidoImplementation.SERVEUR_LIDO==null ) {
! // ss.setText("Echec de la connexion : sortie.");
! System.out.println("Echec de la connexion : sortie.");
! try {Thread.sleep(3000);} catch(InterruptedException e) {
! System.err.println("interrupted");
! }
! System.exit(1);
! } else {
! // ss.setText("Connexion établie");
! System.out.println("Connexion établie");
! try {Thread.sleep(3000);} catch(InterruptedException e) {}
! }
! } else { // flags.no_corba
! // ss.setText("Lancement du serveur Lido...");
! // ss.setProgression(0);
! System.out.println("Lancement du serveur local Lido");
! ICalculLido s=new CCalculLido();
! // ss.setProgression(40);
! LidoImplementation.SERVEUR_LIDO=s;
! }
! } else { // flags.no_server
! // ss.setText("Lancement sans serveur");
! // ss.setProgression(0);
! System.out.println("Lancement sans serveur");
! }
!
! //--- Serveurs Reflux ----------------------------------------------------
!
! if (!flags.no_server) {
!
! // Reflux 2D
! System.out.println("Acces au serveur de calcul Reflux 2D...");
! PRCalculReflux2d.initialiser(!flags.no_corba);
!
! // Reflux 3D
! System.out.println("Acces au serveur de calcul Reflux 3D...");
! PRCalculReflux3d.initialiser(!flags.no_corba);
!
! // if (!flags.no_corba) {
! // System.out.println("Connexion au serveur Reflux...");
! // if (!flags.no_delay) {
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux", 1000));
! // if( RefluxImplementation.SERVEUR_REFLUX==null ) {
! //// ss.setText("Connexion au serveur Reflux, deuxième tentative...");
! //// ss.setProgression(30);
! // System.out.println("Connexion au serveur Reflux, deuxième tentative...");
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux", 1000));
! // }
! // } else {
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux"));
! // }
! // if( RefluxImplementation.SERVEUR_REFLUX==null ) {
! //// ss.setText("Echec de la connexion : sortie.");
! // System.out.println("Echec de la connexion : sortie.");
! // try {Thread.sleep(3000);} catch(InterruptedException e) {
! // System.err.println("interrupted");
! // }
! // System.exit(1);
! // } else {
! //// ss.setText("Connexion établie");
! // System.out.println("Connexion établie");
! // try {Thread.sleep(3000);} catch(InterruptedException e) {}
! // }
! // } else { // flags.no_corba
! //// ss.setText("Lancement du serveur Reflux...");
! //// ss.setProgression(0);
! // System.out.println("Lancement du serveur local Reflux");
! // ICalculReflux s=new CCalculReflux();
! //// ss.setProgression(40);
! // RefluxImplementation.SERVEUR_REFLUX=s;
! // }
! // } else { // flags.no_server
! //// ss.setText("Lancement sans serveur");
! ////// ss.setProgression(0);
! // System.out.println("Lancement sans serveur");
! }
! */
! //--- Lancement des applications -----------------------------------------
!
! LidoApplication lidoApp=new LidoApplication();
! lidoApp.init();
! lidoApp.start();
!
! RefluxApplication prefluxApp=new RefluxApplication();
! prefluxApp.init();
! prefluxApp.start();
! }
! }
!
!
--- 1,224 ----
! /*
! * @file LidoReflux.java
! * @creation 2000-02-01
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.fudaa.d1d2;
! import org.fudaa.dodico.corba.reflux.*;
! import org.fudaa.dodico.corba.lido.*;
! import org.fudaa.dodico.reflux.*;
! import org.fudaa.dodico.lido.*;
! import org.fudaa.dodico.objet.*;
! import com.memoire.bu.*;
! import org.fudaa.fudaa.commun.*;
! import com.diaam.lgpl.ts.*;
! import org.fudaa.fudaa.lido.*;
! import org.fudaa.fudaa.reflux.*;
! import org.fudaa.fudaa.reflux.calcul.PRCalculReflux2d;
! import org.fudaa.fudaa.reflux.calcul.PRCalculReflux3d;
! import javax.swing.JFrame;
! /**
! * Point d'entrée de l'application LidoReflux
! *
! * @version $Revision$ $Date$ by $Author$
! * @author Bertrand Marchand
! */
! public class LidoReflux {
! final public static String[][] SOFTWARE_CLASSES=
! new String[][] { BuLib.SWING_CLASSES, BuLib.BU_CLASSES };
! // Informations sur Lido/Reflux
! public final static BuInformationsSoftware isD1d2_=
! new BuInformationsSoftware();
! static {
! isD1d2_.name= "Lido/Reflux";
! isD1d2_.version= "0.01";
! isD1d2_.date= "11-Fév-2000";
! isD1d2_.rights= "Tous droits réservés. GHN (c)1998-2000";
! isD1d2_.contact= "Ber...@ut...";
! isD1d2_.license= "";
! isD1d2_.logo= null;
! // isD1d2_.banner =RefluxResource.REFLUX.getIcon("reflux-banner");
! isD1d2_.banner= null;
! isD1d2_.ftp= "ftp://www.utc.fr/ghn/";
! isD1d2_.http= "http://www.utc.fr/ghn";
! isD1d2_.man= "http://www.utc.fr/manuels";
! isD1d2_.update= "http://www.utc.fr/ghn/fudaa/deltas/";
! isD1d2_.authors= new String[] { "Bertrand Marchand" };
! isD1d2_.contributors= null;
! isD1d2_.testers= null;
! }
! public static BuInformationsSoftware informationsSoftware() {
! return isD1d2_;
! }
! /**
! * Exécution de l'application
! */
! public static void main(String[] args) {
! System.out.println("Client Lido/Reflux");
! // Lecture des flags
! FudaaCommandLineParser flags= new FudaaCommandLineParser();
! args= flags.parse(args);
! if (args.length > 0) {
! System.err.println("The flag " + args[0] + " is unknown");
! System.err.println("Flags: " + flags.flagTotalText());
! System.exit(1);
! }
! // Console système
! if (!flags.no_terminal) {
! String ver= informationsSoftware().version;
! TerminalStandard ts= new TerminalStandard();
! ts.activeStandards();
! JFrame fts= new JFrame("Console");
! fts.setContentPane(ts);
! fts.pack();
! fts.show();
! String wlcmsg=
! "******************************************************************************\n"
! + "* Bienvenue dans Lido/Reflux "
! + ver
! + " *\n"
! + "* -------------------------- *\n"
! + "* Ceci est la console texte. Elle affiche tous les messages systeme: *\n"
! + "* erreurs, taches en cours. Consultez-la regulierement pour savoir *\n"
! + "* si le programme est actif, si une erreur s'est produite, ... *\n"
! + "* En cas d'erreur, joignez son contenu (enregistre dans le fichier ts.log) *\n"
! + "* au mail de notification de bogue, ceci nous aidera a comprendre. *\n"
! + "******************************************************************************\n\n";
! System.out.println(wlcmsg);
! }
! // Preferences
! BuInformationsSoftware il= informationsSoftware();
! BuPreferences.BU.applyLookAndFeel();
! // Network Check
! FudaaNetworkChecker nc= new FudaaNetworkChecker(il);
! nc.check();
! // Update
! // if( !flags.no_update ) {
! // FudaaUpdate update=new FudaaUpdate(RefondeImplementation.informationsSoftware());
! // update.setInstallMode(flags.jar_update?FudaaUpdate.JAR:FudaaUpdate.CLASS);
! // if( update.scanForUpdate() ) {
! // if( update.startUpdate() )
! // System.exit(0);
! // } else System.err.println("Refonde : no update");
! // }
! // Splash screen
! // BuSplashScreen ss=new BuSplashScreen
! // (RefondeImplementation.informationsSoftware(),
! // 3000,Refonde.SOFTWARE_CLASSES,
! // RefondeImplementation.class.getName());
! // ss.start();
! // ss.setProgression(0);
! // ss.setText("Recherche d'un serveur Refonde distant...");
! //--- Serveurs Lido ------------------------------------------------------
! /*
! if (!flags.no_server) {
! if (!flags.no_corba) {
! // ss.setText("Connexion au serveur Lido...");
! // ss.setProgression(0);
! System.out.println("Connexion au serveur Lido..");
! if (!flags.no_delay) {
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido", 30000));
! if( LidoImplementation.SERVEUR_LIDO==null ) {
! // ss.setText("Connexion au serveur Lido, deuxième tentative...");
! // ss.setProgression(30);
! System.out.println("Connexion au serveur Lido, deuxième tentative...");
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido", 30000));
! }
! } else {
! LidoImplementation.SERVEUR_LIDO=
! ICalculLidoHelper.narrow(CDodico.findServerByName("un-serveur-lido"));
! }
! if( LidoImplementation.SERVEUR_LIDO==null ) {
! // ss.setText("Echec de la connexion : sortie.");
! System.out.println("Echec de la connexion : sortie.");
! try {Thread.sleep(3000);} catch(InterruptedException e) {
! System.err.println("interrupted");
! }
! System.exit(1);
! } else {
! // ss.setText("Connexion établie");
! System.out.println("Connexion établie");
! try {Thread.sleep(3000);} catch(InterruptedException e) {}
! }
! } else { // flags.no_corba
! // ss.setText("Lancement du serveur Lido...");
! // ss.setProgression(0);
! System.out.println("Lancement du serveur local Lido");
! ICalculLido s=new CCalculLido();
! // ss.setProgression(40);
! LidoImplementation.SERVEUR_LIDO=s;
! }
! } else { // flags.no_server
! // ss.setText("Lancement sans serveur");
! // ss.setProgression(0);
! System.out.println("Lancement sans serveur");
! }
!
! //--- Serveurs Reflux ----------------------------------------------------
!
! if (!flags.no_server) {
!
! // Reflux 2D
! System.out.println("Acces au serveur de calcul Reflux 2D...");
! PRCalculReflux2d.initialiser(!flags.no_corba);
!
! // Reflux 3D
! System.out.println("Acces au serveur de calcul Reflux 3D...");
! PRCalculReflux3d.initialiser(!flags.no_corba);
!
! // if (!flags.no_corba) {
! // System.out.println("Connexion au serveur Reflux...");
! // if (!flags.no_delay) {
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux", 1000));
! // if( RefluxImplementation.SERVEUR_REFLUX==null ) {
! //// ss.setText("Connexion au serveur Reflux, deuxième tentative...");
! //// ss.setProgression(30);
! // System.out.println("Connexion au serveur Reflux, deuxième tentative...");
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux", 1000));
! // }
! // } else {
! // RefluxImplementation.SERVEUR_REFLUX=
! // ICalculRefluxHelper.narrow(CDodico.findServerByName("un-serveur-reflux"));
! // }
! // if( RefluxImplementation.SERVEUR_REFLUX==null ) {
! //// ss.setText("Echec de la connexion : sortie.");
! // System.out.println("Echec de la connexion : sortie.");
! // try {Thread.sleep(3000);} catch(InterruptedException e) {
! // System.err.println("interrupted");
! // }
! // System.exit(1);
! // } else {
! //// ss.setText("Connexion établie");
! // System.out.println("Connexion établie");
! // try {Thread.sleep(3000);} catch(InterruptedException e) {}
! // }
! // } else { // flags.no_corba
! //// ss.setText("Lancement du serveur Reflux...");
! //// ss.setProgression(0);
! // System.out.println("Lancement du serveur local Reflux");
! // ICalculReflux s=new CCalculReflux();
! //// ss.setProgression(40);
! // RefluxImplementation.SERVEUR_REFLUX=s;
! // }
! // } else { // flags.no_server
! //// ss.setText("Lancement sans serveur");
! ////// ss.setProgression(0);
! // System.out.println("Lancement sans serveur");
! }
! */
! //--- Lancement des applications -----------------------------------------
! LidoApplication lidoApp= new LidoApplication();
! lidoApp.init();
! lidoApp.start();
! RefluxApplication prefluxApp= new RefluxApplication();
! prefluxApp.init();
! prefluxApp.start();
! }
! }
Index: Profil1D2D.java
===================================================================
RCS file: /cvsroot/fudaa/fudaa_devel/fudaa/src/org/fudaa/fudaa/d1d2/Profil1D2D.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Profil1D2D.java 23 Sep 2003 21:11:40 -0000 1.3
--- Profil1D2D.java 25 Nov 2003 10:13:37 -0000 1.4
***************
*** 1,107 ****
! /*
! * @file Profil1D2D.java
! * @creation 2000-02-01
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
!
! package org.fudaa.fudaa.d1d2;
!
! import java.awt.datatransfer.*;
! import java.io.*;
!
! /**
! * Profil transférable
! *
! * @version $Revision$ $Date$ by $Author$
! * @author Bertrand Marchand
! */
! public class Profil1D2D implements Serializable, Transferable {
! private String name_;
! private boolean disponibilite_;
! private boolean regimePermanent_;
! private double[][] courbe_; // {{0.,10.},{10.,30.},{20.,35.},{25.,37.},{10000.,37.}};
!
! /**
! * Création d'un profil vide
! */
! public Profil1D2D()
! {
! name_="";
! regimePermanent_=true;
! disponibilite_=false;
! courbe_=null;
! }
!
! /**
! * Création d'un profil sans valeurs
! */
! public Profil1D2D(String name, boolean P)
! {
! name_=name;
! regimePermanent_=P;
! disponibilite_=false;
! courbe_=null;
! }
!
! /**
! * Affectation du liminigramme résultat Lido
! */
! public void setLimnigramme(double[][] l)
! {
! if( (courbe_==l)||(l==null)||(l.length==0)||(l[0].length==0) ) return;
! courbe_=l;
! disponibilite_=true;
! }
!
! /**
! * Retourne le nom du profil
! */
! public String getName() {
! return name_;
! }
!
! /**
! * Les résultats sont-ils disponibles sur le profil ?
! */
! public boolean isResultatDisponible() {
! return disponibilite_;
! }
!
! /**
! * Retourne le résultat sous forme de limnigramme. Pour une valeur
! * stationnaire, le limnigramme ne comporte qu'un seul h(t). t dans ce
! * cas n'a pas d'importance.
! */
! public double[][] getLimnigramme() {
! return courbe_;
! }
!
! /**
! * Le regime du calcul d'ou provient le résultat est-il permanent ?
! */
! public boolean isRegimePermanent() {
! return regimePermanent_;
! }
!
!
! // Transferable
! public Object getTransferData(DataFlavor flavor)
! {
! if( isDataFlavorSupported(flavor) ) return this;
! return null;
! }
!
! public DataFlavor[] getTransferDataFlavors()
! {
! return new DataFlavor[] {
! new DataFlavor(getClass(), DataFlavor.javaSerializedObjectMimeType) };
! }
!
! public boolean isDataFlavorSupported(DataFlavor flavor)
! {
! return getClass().equals(flavor.getRepresentationClass());
! }
! }
--- 1,90 ----
! /*
! * @file Profil1D2D.java
! * @creation 2000-02-01
! * @modification $Date$
! * @license GNU General Public License 2
! * @copyright (c)1998-2001 CETMEF 2 bd Gambetta F-60231 Compiegne
! * @mail de...@fu...
! */
! package org.fudaa.fudaa.d1d2;
! import java.awt.datatransfer.*;
! import java.io.*;
! /**
! * Profil transférable
! *
! * @version $Revision$ $Date$ by $Author$
! * @author Bertrand Marchand
! */
! public class Profil1D2D implements Serializable, Transferable {
! private String name_;
! private boolean disponibilite_;
! private boolean regimePermanent_;
! private double[][] courbe_;
! // {{0.,10.},{10.,30.},{20.,35.},{25.,37.},{10000.,37.}};
! /**
! * Création d'un profil vide
! */
! public Profil1D2D() {
! name_= "";
! regimePermanent_= true;
! disponibilite_= false;
! courbe_= null;
! }
! /**
! * Création d'un profil sans valeurs
! */
! public Profil1D2D(String name, boolean P) {
! name_= name;
! regimePermanent_= P;
! disponibilite_= false;
! courbe_= null;
! }
! /**
! * Affectation du liminigramme résultat Lido
! */
! public void setLimnigramme(double[][] l) {
! if ((courbe_ == l) || (l == null) || (l.length == 0) || (l[0].length == 0))
! return;
! courbe_= l;
! disponibilite_= true;
! }
! /**
! * Retourne le nom du profil
! */
! public String getName() {
! return name_;
! }
! /**
! * Les résultats sont-ils disponibles sur le profil ?
! */
! public boolean isResultatDisponible() {
! return disponibilite_;
! }
! /**
! * Retourne le résultat sous forme de limnigramme. Pour une valeur
! * stationnaire, le limnigramme ne comporte qu'un seul h(t). t dans ce
! * cas n'a pas d'importance.
! */
! public double[][] getLimnigramme() {
! return courbe_;
! }
! /**
! * Le regime du calcul d'ou provient le résultat est-il permanent ?
! */
! public boolean isRegimePermanent() {
! return regimePermanent_;
! }
! // Transferable
! public Object getTransferData(DataFlavor flavor) {
! if (isDataFlavorSupported(flavor))
! return this;
! return null;
! }
! public DataFlavor[] getTransferDataFlavors() {
! return new DataFlavor[] {
! new DataFlavor(getClass(), DataFlavor.javaSerializedObjectMimeType)};
! }
! public boolean isDataFlavorSupported(DataFlavor flavor) {
! return getClass().equals(flavor.getRepresentationClass());
! }
! }
|