tracer
Class DisplayerFunction

java.lang.Object
  |
  +--tracer.DisplayerFunction

public class DisplayerFunction
extends java.lang.Object
implements java.lang.Runnable


Field Summary
static int TYPE_CARRE
          Variable permettant le tracage de la fonction en triangle
static int TYPE_CIRCLE
          Variable permettant le tracage de la fonction en cercle
static int TYPE_NORMAL
          Variable permettant le tracage de la fonction en mode ligne
static int TYPE_PT
          Variable permettant le tracage de la fonction en point
static int TYPE_TRIANGLE
          Variable permettant le tracage de la fonction en triangle
 
Constructor Summary
DisplayerFunction()
           
DisplayerFunction(java.lang.String s)
           
DisplayerFunction(java.lang.String s, int type, java.awt.Color c)
           
 
Method Summary
 void drawFunction(java.awt.Graphics2D g2d, ChangeAxe ca, double minX, double maxX, double minY, double maxY, double range)
          Methode permettant de tracer la fonction dans un repere donné
 java.awt.Color getColor()
          Methode permettant de recuperer la couleur de la fonction
 java.lang.String getFunction()
          Methode permettant de recuperer l'expression de la fonction
 int getType()
          Methode permettant de recuperer le type de tracage de la fonction
 double getValue(double x)
          Methode permettant d'avoir la fonction ŕ un point donné
 void run()
           
 void setColor(java.awt.Color c)
          Methode permettant de changer la couleur de tracage de la fonction
 void setFunction(java.lang.String s)
          Methode permettant de changer l'expression de la fonction
 void setType(int t)
          Methode permettant de changer le type de tracage de la fonction
 void stopDraw()
           
 java.lang.String toString()
          Methode renvoyant une forme en caractere de la fonction
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_NORMAL

public static final int TYPE_NORMAL
Variable permettant le tracage de la fonction en mode ligne

TYPE_PT

public static final int TYPE_PT
Variable permettant le tracage de la fonction en point

TYPE_CIRCLE

public static final int TYPE_CIRCLE
Variable permettant le tracage de la fonction en cercle

TYPE_TRIANGLE

public static final int TYPE_TRIANGLE
Variable permettant le tracage de la fonction en triangle

TYPE_CARRE

public static final int TYPE_CARRE
Variable permettant le tracage de la fonction en triangle
Constructor Detail

DisplayerFunction

public DisplayerFunction()
                  throws ExpressionException

DisplayerFunction

public DisplayerFunction(java.lang.String s)
                  throws ExpressionException

DisplayerFunction

public DisplayerFunction(java.lang.String s,
                         int type,
                         java.awt.Color c)
                  throws ExpressionException
Method Detail

setFunction

public void setFunction(java.lang.String s)
                 throws ExpressionException
Methode permettant de changer l'expression de la fonction

setType

public void setType(int t)
Methode permettant de changer le type de tracage de la fonction

setColor

public void setColor(java.awt.Color c)
Methode permettant de changer la couleur de tracage de la fonction

getFunction

public java.lang.String getFunction()
Methode permettant de recuperer l'expression de la fonction

getType

public int getType()
Methode permettant de recuperer le type de tracage de la fonction

getColor

public java.awt.Color getColor()
Methode permettant de recuperer la couleur de la fonction

getValue

public double getValue(double x)
                throws ExpressionException
Methode permettant d'avoir la fonction ŕ un point donné

drawFunction

public void drawFunction(java.awt.Graphics2D g2d,
                         ChangeAxe ca,
                         double minX,
                         double maxX,
                         double minY,
                         double maxY,
                         double range)
Methode permettant de tracer la fonction dans un repere donné

run

public void run()
Specified by:
run in interface java.lang.Runnable

stopDraw

public void stopDraw()

toString

public java.lang.String toString()
Methode renvoyant une forme en caractere de la fonction
Overrides:
toString in class java.lang.Object