opale.m2d.object2d
Class xyFt
java.lang.Object
|
+--opale.m2d.ker.Object2D
|
+--opale.m2d.object2d.xyFt
- All Implemented Interfaces:
- java.lang.Cloneable
- Direct Known Subclasses:
- GxyFt
- public class xyFt
- extends Object2D
- implements java.lang.Cloneable
Cette classe représente une fonction paramétrique x(t), y(t).
- Since:
- Opale-2d 0.11
- Author:
- O.C.
Field Summary |
protected IxyFt |
fonc
|
protected int |
N
|
protected double |
tinf
|
protected double |
tsup
|
Constructor Summary |
xyFt()
Constructeur par défaut. |
xyFt(OIJ rep)
Construit et initialise le nuage avec 0 points et avec les informations par défaut. |
xyFt(xyFt f)
Le constructeur de copie |
Method Summary |
void |
changeOIJ(OIJ rep)
Effectue un changement de repere de l'objet. |
java.lang.Object |
clone()
Crée un nouvel objet de même classe et de même contenu. |
int |
readKeyWord(java.lang.String word,
RFile f,
Pack2D p)
Interpret a keyword read in a file. |
void |
set(IxyFt f,
double inf,
double sup,
int n)
Fixe la fonction a tracer, les bornes de définition et le nombre de points. |
java.lang.String |
toString()
Returns a string representation of this object. |
void |
writeFileMore(WFile f,
Pack2D p)
Wrtie complementary information in a file. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fonc
protected IxyFt fonc
tinf
protected double tinf
tsup
protected double tsup
N
protected int N
xyFt
public xyFt()
- Constructeur par défaut.
xyFt
public xyFt(OIJ rep)
- Construit et initialise le nuage avec 0 points et avec les informations par défaut.
- Parameters:
OIJ
- rep, le repère.
xyFt
public xyFt(xyFt f)
- Le constructeur de copie
- Parameters:
xyFt
- d, l'objet à copier.
set
public void set(IxyFt f,
double inf,
double sup,
int n)
- Fixe la fonction a tracer, les bornes de définition et le nombre de points.
- Parameters:
IxyFt
- f, la fonction à dessiner.double
- tinf, tsup, les bornes du domaine de définition.int
- n, le nombre de points à considerer sur la courbe.
clone
public java.lang.Object clone()
- Crée un nouvel objet de même classe et de même contenu.
- Overrides:
clone
in class Object2D
- Returns:
- Object un clone de l'objet.
- Throws:
OutOfMemoryError
- s'il n'y a pas assez de mémoire.- See Also:
Cloneable
changeOIJ
public void changeOIJ(OIJ rep)
- Effectue un changement de repere de l'objet.
- Overrides:
changeOIJ
in class Object2D
- Parameters:
OIJ
- rep, le nouveau repere.
writeFileMore
public void writeFileMore(WFile f,
Pack2D p)
- Description copied from class:
Object2D
- Wrtie complementary information in a file.
- Overrides:
writeFileMore
in class Object2D
- Following copied from class:
opale.m2d.ker.Object2D
- Parameters:
WFile
- f, the file in writing .
readKeyWord
public int readKeyWord(java.lang.String word,
RFile f,
Pack2D p)
throws java.io.IOException,
MalformedFileException
- Description copied from class:
Object2D
- Interpret a keyword read in a file.
- Overrides:
readKeyWord
in class Object2D
- Following copied from class:
opale.m2d.ker.Object2D
- Parameters:
String
- word, the keyword.RFile
- f, the file in reading.Pack2D
- p, instance of Pack2D
that contains the requiered objects.- Returns:
- int, 0 if the keyword is good, -1 otherwise.
toString
public java.lang.String toString()
- Description copied from class:
Object2D
- Returns a string representation of this object.
- Overrides:
toString
in class Object2D