Class ManagerFunction

java.lang.Object
  |
  +--ManagerFunction

public class ManagerFunction
extends java.lang.Object


Field Summary
static int MAX_FUNCTION
          Variable definissant le nombre maximal de fonctions
 
Constructor Summary
ManagerFunction()
           
 
Method Summary
 int addFunction(java.lang.String s)
          Methode permettant d'ajouter une fonction avec la couleur et le type par défaut Elle renvoie -1 si elle n'a pas pu
 int addFunction(java.lang.String s, int type, java.awt.Color c)
          Methode permettant d'ajouter une fonction en définissant le type et la couleur Elle renvoie -1 si elle n'a pas pu
 boolean delFunction(int indice)
          Methode permettant d'effacer une fonction donnee par son numero Elle renvoie un boolean comme reponse de succes ou non
 boolean delFunction(java.lang.String s)
          Methode permettant d'effacer une fonction donnee par son expression Elle renvoie un boolean comme reponse de succes ou non
 void drawFunction(int indice, java.awt.Graphics2D g2d, ChangeAxe ca, double minX, double maxX, double minY, double maxY, double range)
          Methode tracant une fonction donnee
 java.awt.Color getColor(int i)
           
 java.lang.String getFunctionText(int i)
           
 int getType(int i)
           
 boolean isPossible()
          Methode me disant si je peux ajouter une fonction
 void setColor(java.awt.Color color, int indice)
           
 void setFunctionText(java.lang.String f, int indice)
           
 void setType(int type, int indice)
           
 void stopDraw(int indice)
          Methode arretant le tracage d'une fonction donnee
 java.lang.String toString()
          Methode retournant une representation de en string de la classe
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_FUNCTION

public static final int MAX_FUNCTION
Variable definissant le nombre maximal de fonctions
Constructor Detail

ManagerFunction

public ManagerFunction()
Method Detail

setColor

public void setColor(java.awt.Color color,
                     int indice)

setType

public void setType(int type,
                    int indice)

setFunctionText

public void setFunctionText(java.lang.String f,
                            int indice)
                     throws ExpressionException

getColor

public java.awt.Color getColor(int i)

getType

public int getType(int i)

getFunctionText

public java.lang.String getFunctionText(int i)

drawFunction

public void drawFunction(int indice,
                         java.awt.Graphics2D g2d,
                         ChangeAxe ca,
                         double minX,
                         double maxX,
                         double minY,
                         double maxY,
                         double range)
                  throws ExpressionException
Methode tracant une fonction donnee

stopDraw

public void stopDraw(int indice)
Methode arretant le tracage d'une fonction donnee

addFunction

public int addFunction(java.lang.String s)
                throws ExpressionException
Methode permettant d'ajouter une fonction avec la couleur et le type par défaut Elle renvoie -1 si elle n'a pas pu

addFunction

public int addFunction(java.lang.String s,
                       int type,
                       java.awt.Color c)
                throws ExpressionException
Methode permettant d'ajouter une fonction en définissant le type et la couleur Elle renvoie -1 si elle n'a pas pu

delFunction

public boolean delFunction(java.lang.String s)
Methode permettant d'effacer une fonction donnee par son expression Elle renvoie un boolean comme reponse de succes ou non

delFunction

public boolean delFunction(int indice)
Methode permettant d'effacer une fonction donnee par son numero Elle renvoie un boolean comme reponse de succes ou non

isPossible

public boolean isPossible()
Methode me disant si je peux ajouter une fonction

toString

public java.lang.String toString()
Methode retournant une representation de en string de la classe
Overrides:
toString in class java.lang.Object