|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opale.m2d.ker.Object2D | +--opale.m2d.object2d.Line2D | +--opale.m2d.object2d.GLine2D
Cette classe représente une droite graphique; elle étend la classe Line2D
.
Fields inherited from class opale.m2d.object2d.Line2D |
a, b, c, EPSILON |
Constructor Summary | |
GLine2D()
Constructeur par défaut. |
|
GLine2D(Line2D l)
Constructeur d'une instance de GLine2D à partire d'une instance de Line2D. |
|
GLine2D(OIJ rep,
double a,
double b,
double c)
Constructeur d'une instance de GLine2D associé à un répère OIJ et d'équation donnée. |
|
GLine2D(OIJ rep,
double x1,
double y1,
double x2,
double y2)
Constructeur d'une instance de GLine2D associé à un répère OIJ et passant par deux points donnés. |
|
GLine2D(Point2D p,
Point2D q)
Constructeur d'une instance de Line2D passant par deux points donnés. |
|
GLine2D(Point2D p,
Vector2D v)
Constructeur d'une instance de GLine2D passant par un point et de vecteur directeur donné. |
Method Summary | |
java.lang.Object |
clone()
Crée un nouvel objet de même classe et de même contenu. |
void |
draw(Pen2D p)
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.Line2D |
changeOIJ, dirVect, distSq, distSq, equals, get, isOrtho, isParall, orthoLine, orthoLine, orthoVect, parallLine, parallLine, readFile, set, set, set, set, toString |
Methods inherited from class opale.m2d.ker.Object2D |
getOIJ, setOIJ, writeFile, xmax |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface opale.m2d.ker.GObject2D |
toString |
Constructor Detail |
public GLine2D()
public GLine2D(OIJ rep, double a, double b, double c) throws LineException
OIJ
- rep, le repère de définition de la droite.double
- a,b,c, les coefficients de l'équation ax+by+c=0.public GLine2D(Line2D l)
Line2D
- l, l'instance de Line2Dpublic GLine2D(OIJ rep, double x1, double y1, double x2, double y2) throws LineException
OIJ
- rep, le repère de définition de la droite.double
- x1,y1,x2,y2, les coordonnées des deux points.public GLine2D(Point2D p, Point2D q) throws LineException
Point2D
- p, Point2D q, les deux points.public GLine2D(Point2D p, Vector2D v)
Point2D
- p, le point.Vector2D
- v, le vecteur directeur.Method Detail |
public void draw(Pen2D p)
GObject2D
draw
in interface GObject2D
opale.m2d.ker.GObject2D
Pen2D
- crayon, le crayon pour dessiner en 2D dans un repere2Dpublic InfoObject getInfo()
GObject2D
getInfo
in interface GObject2D
opale.m2d.ker.GObject2D
public java.lang.Object clone()
clone
in interface GObject2D
clone
in class Line2D
OutOfMemoryError
- s'il n'y a pas assez de mémoire.Cloneable
public int readKeyWord(java.lang.String word, RFile f, Pack2D p) throws java.io.IOException, MalformedFileException
Object2D
readKeyWord
in class Line2D
opale.m2d.ker.Object2D
String
- word, the keyword.RFile
- f, the file in reading.Pack2D
- p, instance of Pack2D
that contains the requiered objects.public void writeFileMore(WFile f, Pack2D p)
Object2D
writeFileMore
in class Line2D
opale.m2d.ker.Object2D
WFile
- f, the file in writing .
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |