opale.m2d.object2d
Class GConic
java.lang.Object
|
+--opale.m2d.ker.Object2D
|
+--opale.m2d.object2d.Conic
|
+--opale.m2d.object2d.GConic
- All Implemented Interfaces:
- java.lang.Cloneable, GObject2D
- public class GConic
- extends Conic
- implements java.lang.Cloneable, GObject2D
Cette classe étend Conic
et représente graphiquement une conique plane.
- Since:
- Opale-2d 0.11
- Author:
- O.C.
Constructor Summary |
GConic()
Constructeur par défaut. |
GConic(GConic f)
Le constructeur de copie |
GConic(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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GConic
public GConic()
- Constructeur par défaut.
GConic
public GConic(OIJ rep)
- Construit et initialise la fonction avec les informations par défaut.
- Parameters:
OIJ
- rep, le repère.
GConic
public GConic(GConic f)
- Le constructeur de copie
- Parameters:
GConic
- d, l'objet à copier.
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 Conic
- 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 Conic
- 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 Conic
- Returns:
- Object un clone de l'objet.
- Throws:
OutOfMemoryError
- s'il n'y a pas assez de mémoire.- See Also:
Cloneable