|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.module2d.noyau2d.Object2D | +--opale.module2d.noyau2d.Point2D | +--opale.module2d.noyau2d.GPoint2D
Cette classe représente un point du plan Elle contient plusieurs méthodes utiles pour la géométrie euclidienne
Fields inherited from class opale.module2d.noyau2d.Point2D |
x,
y |
Constructor Summary | |
GPoint2D()
Constructeur par défaut. |
|
GPoint2D(GPoint2D p)
Le constructeur de copie |
|
GPoint2D(OIJ rep)
Construit et initialise le point avec les coordonnées (0; 0) et avec les informations par défaut. |
|
GPoint2D(OIJ rep,
double x,
double y)
Construit et initialise le point avec les coordonnées (x; y) et avec les informations par défaut. |
|
GPoint2D(Point2D p)
Construit et initialise le point à partir d'un Point2D et 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)
Interprète un mot clé lu dans un fichier. |
void |
writeFileMore(WFile f,
Pack2D p)
Ecris les informations complémentaires concernant l'objet dans un fichier. |
Methods inherited from class opale.module2d.noyau2d.Point2D |
changeOIJ,
equals,
getX,
getY,
homothetie,
rotate,
rotate,
setLocation,
setLocation,
toString,
translate |
Methods inherited from class opale.module2d.noyau2d.Object2D |
getOIJ,
readFile,
setOIJ,
writeFile |
Methods inherited from class java.lang.Object |
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public GPoint2D()
public GPoint2D(OIJ rep)
OIJ
- rep, le repère.public GPoint2D(OIJ rep, double x, double y)
OIJ
- rep, le repère.double
- x,y les coordonnées du point.public GPoint2D(Point2D p)
Point2D
- p le pointpublic GPoint2D(GPoint2D p)
Point2D
- p, le point à copierMethod Detail |
public void draw(Pen2D c)
Pen2D
- crayon, le crayon pour dessiner en 2D dans un repere2Dpublic InfoObject getInfo()
public java.lang.Object clone()
Cloneable
public int readKeyWord(java.lang.String word, RFile f, Pack2D p) throws java.io.IOException, MalformedFileException
String
- word, le mot clé à décoder.RFile
- f, le fichier en cours de lecture.Pack2D
- p, le pack qui contient l'ensemble des objets 2d en cours
d'existence.public void writeFileMore(WFile f, Pack2D p)
WFile
- f, le fichier dans lequel il faut écrire.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |