opale.m2d.object2d
Class GFPolar

java.lang.Object
  |
  +--opale.m2d.ker.Object2D
        |
        +--opale.m2d.object2d.FPolar
              |
              +--opale.m2d.object2d.GFPolar
All Implemented Interfaces:
java.lang.Cloneable, GObject2D

public class GFPolar
extends FPolar
implements java.lang.Cloneable, GObject2D

Cette classe étend FPolar et représente graphiquemnet une fonction polaire r=f(theta).

Since:
Opale-2d 0.11
Author:
O.C.

Fields inherited from class opale.m2d.object2d.FPolar
N, tinf, tsup
 
Constructor Summary
GFPolar()
          Constructeur par défaut.
GFPolar(GFPolar f)
          Le constructeur de copie
GFPolar(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
 int readKeyWord(java.lang.String word, RFile f, Pack2D p)
          Interpret a keyword read in a file.
 void writeFileMore(WFile f, Pack2D p)
          Wrtie complementary information in a file.
 
Methods inherited from class opale.m2d.object2d.FPolar
changeOIJ, main, set, set, set, set, set, set, set, toString, val
 
Methods inherited from class opale.m2d.ker.Object2D
getOIJ, readFile, setOIJ, writeFile, xmax
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface opale.m2d.ker.GObject2D
toString
 

Constructor Detail

GFPolar

public GFPolar()
Constructeur par défaut.

GFPolar

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

GFPolar

public GFPolar(GFPolar f)
Le constructeur de copie
Parameters:
GFPolar - 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.ker.GObject2D
Parameters:
Pen2D - crayon, le crayon pour dessiner en 2D dans un repere2D

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.ker.GObject2D
Returns:
InfoObjet, info sur l'objet

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 FPolar
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.

writeFileMore

public void writeFileMore(WFile f,
                          Pack2D p)
Description copied from class: Object2D
Wrtie complementary information in a file.
Overrides:
writeFileMore in class FPolar
Following copied from class: opale.m2d.ker.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 FPolar
Returns:
Object un clone de l'objet.
Throws:
OutOfMemoryError - s'il n'y a pas assez de mémoire.
See Also:
Cloneable