simu
Class AffPlot

java.lang.Object
  extended by simu.TypeAffichage
      extended by simu.AffPlot
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class AffPlot
extends TypeAffichage
implements java.awt.event.ActionListener

Affichage d'un graphe à partir d'un ensemble de points. Appelle SimuParams.calcul() au début pour le calcul des positions des points.


Field Summary
(package private)  Affichage aff
           
(package private)  SimuApplet applet
           
(package private)  java.awt.Label info
           
(package private)  int nd
           
(package private)  java.util.Vector outp
           
(package private)  SimuPlot plot
           
(package private)  boolean sousaff
           
 
Constructor Summary
AffPlot(SimuApplet applet, Affichage aff, boolean sousaff)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void affiche(ListeValeurs in, java.util.Vector outp)
          méthode d'affichage En entrée : paramètres d'entrée sous forme d'objets type d'affichage paramètres de sortie sous forme d'objets état de la simulation
protected  void ajouterBoutons(java.awt.Panel p)
           
 void ajuster()
          ajustement du graphe
 void effacer()
          effacement affichage
 boolean estLive()
           
 java.awt.Panel initPanel(java.util.Vector outp)
          Création des composants AWT à afficher
protected  void initPlot()
           
 void update(ListeValeurs out)
          Mise à jour de l'affichage à partir des valeurs de sortie
 
Methods inherited from class simu.TypeAffichage
avantLancement, fin, setChronos, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plot

SimuPlot plot

applet

SimuApplet applet

outp

java.util.Vector outp

aff

Affichage aff

nd

int nd

info

java.awt.Label info

sousaff

boolean sousaff
Constructor Detail

AffPlot

public AffPlot(SimuApplet applet,
               Affichage aff,
               boolean sousaff)
Method Detail

initPanel

public java.awt.Panel initPanel(java.util.Vector outp)
                         throws SimuException
Description copied from class: TypeAffichage
Création des composants AWT à afficher

Specified by:
initPanel in class TypeAffichage
Throws:
SimuException

estLive

public boolean estLive()
Specified by:
estLive in class TypeAffichage

affiche

public void affiche(ListeValeurs in,
                    java.util.Vector outp)
             throws SimuException
Description copied from class: TypeAffichage
méthode d'affichage En entrée : paramètres d'entrée sous forme d'objets type d'affichage paramètres de sortie sous forme d'objets état de la simulation

Specified by:
affiche in class TypeAffichage
Throws:
SimuException

update

public void update(ListeValeurs out)
            throws SimuException
Description copied from class: TypeAffichage
Mise à jour de l'affichage à partir des valeurs de sortie

Specified by:
update in class TypeAffichage
Throws:
SimuException

initPlot

protected void initPlot()

ajouterBoutons

protected void ajouterBoutons(java.awt.Panel p)

effacer

public void effacer()
Description copied from class: TypeAffichage
effacement affichage

Overrides:
effacer in class TypeAffichage

ajuster

public void ajuster()
Description copied from class: TypeAffichage
ajustement du graphe

Overrides:
ajuster in class TypeAffichage

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener