<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"> <!--NewPage--> <HTML> <HEAD> <!-- Generated by javadoc on Tue Sep 03 18:36:02 GMT+01:00 2002 --> <TITLE> : Class  Tortue </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"> </HEAD> <BODY BGCOLOR="white">  <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_top"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">   <TR ALIGN="center" VALIGN="top">   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>   </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR>  <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV CLASS&nbsp; &nbsp;NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">   <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp; &nbsp;<A HREF="Tortue.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">   SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="Tortue.html#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="Tortue.html#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="Tortue.html#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="Tortue.html#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== -->  <HR> <!-- ======== START OF CLASS DATA ======== --> <H2> <FONT SIZE="-1"> up5.mi.pary.jc.tortue</FONT> <BR> Class  Tortue</H2> <PRE> java.lang.Object   |   +--<B>up5.mi.pary.jc.tortue.Tortue</B> </PRE> <HR> <DL> <DT>public class <B>Tortue</B><DT>extends java.lang.Object</DL>  <P> <HR>  <P> <!-- ======== INNER CLASS SUMMARY ======== -->   <!-- =========== FIELD SUMMARY =========== -->   <!-- ======== CONSTRUCTOR SUMMARY ======== -->  <A NAME="constructor_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Constructor Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE><B><A HREF="Tortue.html#Tortue()">Tortue</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cre une nouvelle tortue et la place au milieu du terrain*   la direction initiale de la tortue est l'horizontale vers la droite *     jusqu' ordre contraire, la tortue laisse une trace de son dplacement</TD> </TR> </TABLE> &nbsp; <!-- ========== METHOD SUMMARY =========== -->  <A NAME="method_summary"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=2><FONT SIZE="+2"> <B>Method Summary</B></FONT></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#av(double)">av</A></B>(double&nbsp;x)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fait avancer cette tortue de 'x' units dans la direction courante</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#avance(double)">avance</A></B>(double&nbsp;n)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#baisseCrayon()">baisseCrayon</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;le crayon de cette tortue devient actif : la tortue laisse une trace visible de ses dplacements</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#end()">end</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;java.awt.Color</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#getColor()">getColor</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;retourne la couleur du crayon</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>static&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#initTortue()">initTortue</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;boolean</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#isCrayonBaisse()">isCrayonBaisse</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;teste si le crayon est baisse</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#leveCrayon()">leveCrayon</A></B>()</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;le crayon de cette tortue devient inactif : la tortue ne laisse plus de trace visible de ses dplacements</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#re(double)">re</A></B>(double&nbsp;p)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fait reculer cette tortue de 'x' units dans la direction courante</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#recule(double)">recule</A></B>(double&nbsp;n)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#setColor(java.awt.Color)">setColor</A></B>(java.awt.Color&nbsp;c)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#td(double)">td</A></B>(double&nbsp;x)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fait tourner cette tortue de 'x' degrs vers la droite  la tortue ne bouge pas : elle change simplement de direction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#tg(double)">tg</A></B>(double&nbsp;x)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fait tourner cette tortue de 'x' degrs vers la gauche  la tortue ne bouge pas : elle change simplement de direction</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#tourneDroite(double)">tourneDroite</A></B>(double&nbsp;n)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> <CODE>&nbsp;void</CODE></FONT></TD> <TD><CODE><B><A HREF="Tortue.html#tourneGauche(double)">tourneGauche</A></B>(double&nbsp;n)</CODE>  <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD> </TR> </TABLE> &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> <TD><B>Methods inherited from class java.lang.Object</B></TD> </TR> <TR BGCOLOR="white" CLASS="TableRowColor"> <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> </TR> </TABLE> &nbsp; <P>  <!-- ============ FIELD DETAIL =========== -->   <!-- ========= CONSTRUCTOR DETAIL ======== -->  <A NAME="constructor_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Constructor Detail</B></FONT></TD> </TR> </TABLE>  <A NAME="Tortue()"><!-- --></A><H3> Tortue</H3> <PRE> public <B>Tortue</B>()</PRE> <DL> <DD>cre une nouvelle tortue et la place au milieu du terrain*   la direction initiale de la tortue est l'horizontale vers la droite *     jusqu' ordre contraire, la tortue laisse une trace de son dplacement</DL>  <!-- ============ METHOD DETAIL ========== -->  <A NAME="method_detail"><!-- --></A> <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> <TD COLSPAN=1><FONT SIZE="+2"> <B>Method Detail</B></FONT></TD> </TR> </TABLE>  <A NAME="end()"><!-- --></A><H3> end</H3> <PRE> public static void <B>end</B>()</PRE> <DL> </DL> <HR>  <A NAME="initTortue()"><!-- --></A><H3> initTortue</H3> <PRE> public static void <B>initTortue</B>()</PRE> <DL> </DL> <HR>  <A NAME="setColor(java.awt.Color)"><!-- --></A><H3> setColor</H3> <PRE> public void <B>setColor</B>(java.awt.Color&nbsp;c)</PRE> <DL> </DL> <HR>  <A NAME="av(double)"><!-- --></A><H3> av</H3> <PRE> public void <B>av</B>(double&nbsp;x)</PRE> <DL> <DD>fait avancer cette tortue de 'x' units dans la direction courante</DL> <HR>  <A NAME="re(double)"><!-- --></A><H3> re</H3> <PRE> public void <B>re</B>(double&nbsp;p)</PRE> <DL> <DD>fait reculer cette tortue de 'x' units dans la direction courante</DL> <HR>  <A NAME="td(double)"><!-- --></A><H3> td</H3> <PRE> public void <B>td</B>(double&nbsp;x)</PRE> <DL> <DD>fait tourner cette tortue de 'x' degrs vers la droite  la tortue ne bouge pas : elle change simplement de direction</DL> <HR>  <A NAME="tg(double)"><!-- --></A><H3> tg</H3> <PRE> public void <B>tg</B>(double&nbsp;x)</PRE> <DL> <DD>fait tourner cette tortue de 'x' degrs vers la gauche  la tortue ne bouge pas : elle change simplement de direction</DL> <HR>  <A NAME="baisseCrayon()"><!-- --></A><H3> baisseCrayon</H3> <PRE> public void <B>baisseCrayon</B>()</PRE> <DL> <DD>le crayon de cette tortue devient actif : la tortue laisse une trace visible de ses dplacements</DL> <HR>  <A NAME="leveCrayon()"><!-- --></A><H3> leveCrayon</H3> <PRE> public void <B>leveCrayon</B>()</PRE> <DL> <DD>le crayon de cette tortue devient inactif : la tortue ne laisse plus de trace visible de ses dplacements</DL> <HR>  <A NAME="isCrayonBaisse()"><!-- --></A><H3> isCrayonBaisse</H3> <PRE> public boolean <B>isCrayonBaisse</B>()</PRE> <DL> <DD>teste si le crayon est baisse</DL> <HR>  <A NAME="getColor()"><!-- --></A><H3> getColor</H3> <PRE> public java.awt.Color <B>getColor</B>()</PRE> <DL> <DD>retourne la couleur du crayon</DL> <HR>  <A NAME="avance(double)"><!-- --></A><H3> avance</H3> <PRE> public void <B>avance</B>(double&nbsp;n)</PRE> <DL> </DL> <HR>  <A NAME="recule(double)"><!-- --></A><H3> recule</H3> <PRE> public void <B>recule</B>(double&nbsp;n)</PRE> <DL> </DL> <HR>  <A NAME="tourneGauche(double)"><!-- --></A><H3> tourneGauche</H3> <PRE> public void <B>tourneGauche</B>(double&nbsp;n)</PRE> <DL> </DL> <HR>  <A NAME="tourneDroite(double)"><!-- --></A><H3> tourneDroite</H3> <PRE> public void <B>tourneDroite</B>(double&nbsp;n)</PRE> <DL> </DL> <!-- ========= END OF CLASS DATA ========= --> <HR>  <!-- ========== START OF NAVBAR ========== --> <A NAME="navbar_bottom"><!-- --></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_bottom_firstrow"><!-- --></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">   <TR ALIGN="center" VALIGN="top">   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>   <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>   </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR>  <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV CLASS&nbsp; &nbsp;NEXT CLASS</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">   <A HREF="../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp; &nbsp;<A HREF="Tortue.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">   SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="Tortue.html#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="Tortue.html#method_summary">METHOD</A></FONT></TD> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="Tortue.html#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="Tortue.html#method_detail">METHOD</A></FONT></TD> </TR> </TABLE> <!-- =========== END OF NAVBAR =========== -->  <HR>  </BODY> </HTML> 
