opale.m2d.object2d
Class GyFx

java.lang.Object
  |
  +--opale.tools.OpaleObject
        |
        +--opale.m2d.Object2D
              |
              +--opale.m2d.object2d.yFx
                    |
                    +--opale.m2d.object2d.GyFx
All Implemented Interfaces:
java.lang.Cloneable, GObject2D

public class GyFx
extends yFx
implements java.lang.Cloneable, GObject2D

Cette classe étend yFx et représente graphiquemnet une fonction y =f(x).

Since:
Opale-2d 0.1

Fields inherited from class opale.m2d.object2d.yFx
N, xinf, xsup
 
Constructor Summary
GyFx()
          Constructeur par défaut.
GyFx(GyFx f)
          Le constructeur de copie
GyFx(OIJ rep)
          Construit et initialise la fonction avec les informations par défaut.
 
Method Summary
 java.lang.Object clone()
          Crée un nouvel objet de même classe et de même contenu.
 void draw(Pen2D c)
          Methode indiquant la procedure de dessin des objets de la classe
 InfoObject getInfo()
          Renvoie les infos de l'instance
 void maxdraw(boolean b)
          Indique si on désire tracer la fonction dans toute la fenetre d'affichage ou juste dans le domaine xinf, xsup choisi.
 int readKeyWord(java.lang.String word, java.io.StreamTokenizer f, OpaleSet p)
          Abstract method to read a key word in a file '*.ode'.
 void writeMore(java.io.PrintWriter f, OpaleSet p)
          Write complementary information in a stream.
 
Methods inherited from class opale.m2d.object2d.yFx
changeOIJ, main, set, set, set, set, set, set, set, toString, val
 
Methods inherited from class opale.m2d.Object2D
getOIJ, read, setOIJ, write, xmax
 
Methods inherited from class opale.tools.OpaleObject
getId, setId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface opale.m2d.GObject2D
toString
 

Constructor Detail

GyFx

public GyFx()
Constructeur par défaut.

GyFx

public GyFx(OIJ rep)
Construit et initialise la fonction avec les informations par défaut.
Parameters:
OIJ - rep, le repère.

GyFx

public GyFx(GyFx f)
Le constructeur de copie
Parameters:
GyFx - d, l'objet à copier.
Method Detail

draw

public void draw(Pen2D c)
Description copied from interface: GObject2D
Methode indiquant la procedure de dessin des objets de la classe
Specified by:
draw in interface GObject2D
Following copied from interface: opale.m2d.GObject2D
Parameters:
Pen2D - crayon, le crayon pour dessiner en 2D dans un repere2D

maxdraw

public void maxdraw(boolean b)
Indique si on désire tracer la fonction dans toute la fenetre d'affichage ou juste dans le domaine xinf, xsup choisi.
Parameters:
boolean, - true si on trace dans toute la fenetre.
Since:
Opale-2d 0.11

getInfo

public InfoObject getInfo()
Description copied from interface: GObject2D
Renvoie les infos de l'instance
Specified by:
getInfo in interface GObject2D
Following copied from interface: opale.m2d.GObject2D
Returns:
InfoObjet, info sur l'objet

readKeyWord

public int readKeyWord(java.lang.String word,
                       java.io.StreamTokenizer f,
                       OpaleSet p)
                throws java.io.IOException,
                       InvalidFormatException
Description copied from class: OpaleObject
Abstract method to read a key word in a file '*.ode'.
Overrides:
readKeyWord in class yFx
Following copied from class: opale.tools.OpaleObject
Parameters:
String - s, key word to read.
StreamTokenizer - f, stream to read.
OpaleSet - session, the group of 'Opale' object
Returns:
int, 0 if the key word is correct, -1 otherwise.

writeMore

public void writeMore(java.io.PrintWriter f,
                      OpaleSet p)
Description copied from class: Object2D
Write complementary information in a stream.
Overrides:
writeMore in class yFx
Following copied from class: opale.m2d.Object2D
Parameters:
WFile - f, the file in writing .

clone

public java.lang.Object clone()
Crée un nouvel objet de même classe et de même contenu.
Specified by:
clone in interface GObject2D
Overrides:
clone in class yFx
Returns:
Object un clone de l'objet.
Throws:
OutOfMemoryError - s'il n'y a pas assez de mémoire.
See Also:
Cloneable