|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--tracer.DisplayerFunction
| 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 |
|
| Field Detail |
public static final int TYPE_NORMAL
public static final int TYPE_PT
public static final int TYPE_CIRCLE
public static final int TYPE_TRIANGLE
public static final int TYPE_CARRE
| Constructor Detail |
public DisplayerFunction()
throws ExpressionException
public DisplayerFunction(java.lang.String s)
throws ExpressionException
public DisplayerFunction(java.lang.String s,
int type,
java.awt.Color c)
throws ExpressionException
| Method Detail |
public void setFunction(java.lang.String s)
throws ExpressionException
public void setType(int t)
public void setColor(java.awt.Color c)
public java.lang.String getFunction()
public int getType()
public java.awt.Color getColor()
public double getValue(double x)
throws ExpressionException
public void drawFunction(java.awt.Graphics2D g2d,
ChangeAxe ca,
double minX,
double maxX,
double minY,
double maxY,
double range)
public void run()
public void stopDraw()
public java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||