From 35918919b15a8a776dd0724f974adea241ae1487 Mon Sep 17 00:00:00 2001 From: Wamster Date: Wed, 25 Oct 2023 19:48:54 +0200 Subject: [PATCH] debut TP DEV Piles --- Anglish/MailInstruction.docx | Bin 0 -> 19059 bytes DEV/DEV3.2/TP03_Listes/Action.class | Bin 1329 -> 2537 bytes DEV/DEV3.2/TP03_Listes/Action.java | 35 +++++++++++-- DEV/DEV3.2/TP03_Listes/Dessin.class | Bin 1283 -> 1140 bytes DEV/DEV3.2/TP03_Listes/Dessin.java | 7 +-- .../TP03_Listes/ListeParallelogramme.class | Bin 0 -> 1235 bytes .../TP03_Listes/ListeParallelogramme.java | 48 ++++++++++++++++++ DEV/DEV3.2/TP03_Listes/Main.class | Bin 995 -> 951 bytes DEV/DEV3.2/TP03_Listes/Main.java | 18 +++---- DEV/DEV3.2/TP03_Listes/Parallelogramme.class | Bin 1058 -> 1386 bytes DEV/DEV3.2/TP03_Listes/Parallelogramme.java | 11 ++++ DEV/DEV3.2/TP04_Piles/Q1Main.class | Bin 0 -> 1255 bytes DEV/DEV3.2/TP04_Piles/Q1Main.java | 43 ++++++++++++++++ DEV/DEV3.2/TP04_Piles/Q2Liste.java | 25 +++++++++ DEV/DEV3.2/TP04_Piles/Q2Maillon.java | 11 ++++ DEV/DEV3.2/TP04_Piles/Q2Pile.java | 5 ++ 16 files changed, 186 insertions(+), 17 deletions(-) create mode 100755 Anglish/MailInstruction.docx create mode 100644 DEV/DEV3.2/TP03_Listes/ListeParallelogramme.class create mode 100644 DEV/DEV3.2/TP03_Listes/ListeParallelogramme.java create mode 100644 DEV/DEV3.2/TP04_Piles/Q1Main.class create mode 100644 DEV/DEV3.2/TP04_Piles/Q1Main.java create mode 100644 DEV/DEV3.2/TP04_Piles/Q2Liste.java create mode 100644 DEV/DEV3.2/TP04_Piles/Q2Maillon.java create mode 100644 DEV/DEV3.2/TP04_Piles/Q2Pile.java diff --git a/Anglish/MailInstruction.docx b/Anglish/MailInstruction.docx new file mode 100755 index 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|C*#MKC{VLXECh)Xk} zA`wPAk{Tv4rC}PWFmB*x2X1MY!K{kgD&|zoE9kS#iYM}hYgm@BoRVvl%R)hSX3N+$ zQdQ5iQW+xB3c>}mWE)=9Wq7P5ypU;ONG~#@eZjO%Z&5*Syak`0c%>k;>}-;&D`VOs zS1oS{_ocC6(KFr(KaE~8=w+u`5zCfY+!mV(Mo#jK_g+fu3foI%Wqd_0{feCh&nRwZ zjUB&`iaT|R726Z8q=@*8D|@CVcQyXJD=HPa?ev2$ge44ruN9oCTNJCN6dhSAdZuGf z%f9L8!(AQS=uvS`M;Z&PrQ<#pbv(dBp1Gx6I+pNA#j=jaSW&U6;|ZRsSkv(g&)KOW zkEkM}Ba0mSS}VmV`9rb{yOdhr*b+rg!LaXY>42P|u!XB2))?y=k8F4jox!+lX0#EK zcm*A7!UVQ5yJ9smsWR_a`z6O_ zaPTzc{_H5FB)q(1+N=|+Q`fTTV{WYxO?*r#I<{w+cBOIs8W~b*Q}YV@>`$3zaH_1( zUsGo~sk}@2g69gO%p$$M!2jLsz>Wl2HuFxdpMPd%nRbb{4x@aZQE=w`SQS0AF}~jb zdig~80@2U)06hu*1N>`=FHjQ6&j@_vPQf|aD1x+MgrLzzP8iNJI*1FjGXEX3L;TMt z4iPv;P(gO`7$F4*80Vr*!FROhrVgPdkI-?1@Bt#9pv59b&_DeBDT@XCVgqR7x(gR6 zH%Y-WlsZSDL-gth{)VPvIR1-hg_wHzK|h~@8>;2`0I721Y}gQCm(GTb5O(=&*eGG6 IzM?Dt02X8?r2qf` diff --git a/DEV/DEV3.2/TP03_Listes/Action.java b/DEV/DEV3.2/TP03_Listes/Action.java index 66ec4f2..adb179d 100644 --- a/DEV/DEV3.2/TP03_Listes/Action.java +++ b/DEV/DEV3.2/TP03_Listes/Action.java @@ -4,19 +4,44 @@ import java.awt.event.*; import java.util.*; public class Action implements MouseListener{ - public java.util.List listeParallelogramme; + public ListeParallelogramme listeParallelogramme; + public Point origine; + public JFrame fenetre; - public Action(java.util.List listeParallelogramme){ + public Action(ListeParallelogramme listeParallelogramme, JPanel panel, JFrame fenetre){ this.listeParallelogramme = listeParallelogramme; + this.origine = panel.getLocationOnScreen(); + this.fenetre = fenetre; } @Override public void mouseClicked(MouseEvent e){ - for (Parallelogramme parallelogramme : this.listeParallelogramme){ - if (parallelogramme.forme.contains(e.getPoint())){ - System.out.println("clic"); + Point clic = e.getPoint(); + int x = clic.x - this.origine.x; + int y = clic.y - this.origine.y; + Parallelogramme parallelogramme = this.listeParallelogramme.get(-1); + while ((parallelogramme = this.listeParallelogramme.next(parallelogramme)) != null){ + int[] xPoints = parallelogramme.forme.xpoints; + System.out.print("x=["); + for (int px : xPoints){ + System.out.print(px+","); + } + System.out.print("] "); + int[] yPoints = parallelogramme.forme.ypoints; + System.out.print("y=["); + for (int yx : yPoints){ + System.out.print(yx+","); + } + System.out.print("] "); + System.out.println(" clic=" + x + "," + y); + if (parallelogramme.forme.contains(x, y)){ + System.out.println(parallelogramme.luminance()); + this.listeParallelogramme.delete(parallelogramme); + fenetre.repaint(); + break; } } + System.out.println(); } @Override diff --git a/DEV/DEV3.2/TP03_Listes/Dessin.class b/DEV/DEV3.2/TP03_Listes/Dessin.class index c2225be262f477d81f83a224d70b9abc81488043..017a26f7f5a8b581b04813340b1f806c1caad7c5 100644 GIT binary patch delta 663 zcmZXR%TE(g6vlsdS{XXMQqY1$9xC!EefdBUDHha}=KD?QKsnP^rlMOlP8~=vwe=ezT+)Ot)(~OWuAT4X4!n?iHJ>3g^+zi~2Kf*$?E= zc-d<-{956;`_k3)GpjjCQp9QC9W!iYav|64W*6h7}GJXq1!Uco?H~JuqY{ zQbSknxp*bg70vE*yMYG6?rKEM*GwN%BxG9DUugcSp;c&y`zfi-pV6pvZ1 zJpg2(AiPeOw@tf{zSl%AR%=Q#ISuhfqq3fKh3B{${0UW__Pi^FM`}HZfxQMayRtz+ zv%F9eFDo>m$C`#{L3&dxRKayB_6CDDJ7yfqag|qDvgXtqja6~?u2tS3qpX@6-c~Ja zmZQUiyV5Ldu|>g6)3TOio~oY6@>gqQgM^wkh3qev-hB+UVch3P9Qu|h&&$`e4%oG& zd*9L$EZoBSb7oO?d8cB@3gOnLx`9?h+ot2HfsZ!|wCGrG3XV72#9Sl=3G<-*NG?3~Gd_aeCQc7nPU8(noHSObXfA1=6J}7KM!~=9P zcNYxA$Tg0B$_cW~lJ64HJ|Ww6a+PFzlGZW!f1+QNg56TdCI@ZroKdZ8$e diff --git a/DEV/DEV3.2/TP03_Listes/Dessin.java b/DEV/DEV3.2/TP03_Listes/Dessin.java index 05031c5..8bda331 100644 --- a/DEV/DEV3.2/TP03_Listes/Dessin.java +++ b/DEV/DEV3.2/TP03_Listes/Dessin.java @@ -4,9 +4,9 @@ import java.util.*; public class Dessin extends JComponent { - public java.util.List listeParallelogramme; + public ListeParallelogramme listeParallelogramme; - public Dessin(java.util.List listeParallelogramme){ + public Dessin(ListeParallelogramme listeParallelogramme){ this.listeParallelogramme = listeParallelogramme; } @@ -17,7 +17,8 @@ public class Dessin extends JComponent { secondPinceau.setColor(this.getBackground()); secondPinceau.fillRect(0, 0, this.getWidth(), this.getHeight()); } - for (Parallelogramme parallelogramme : this.listeParallelogramme){ + Parallelogramme parallelogramme = this.listeParallelogramme.get(-1); + while ((parallelogramme = this.listeParallelogramme.next(parallelogramme)) != null){ secondPinceau.setColor(parallelogramme.couleur); secondPinceau.fillPolygon(parallelogramme.forme); secondPinceau.setColor(Color.BLACK); diff --git a/DEV/DEV3.2/TP03_Listes/ListeParallelogramme.class b/DEV/DEV3.2/TP03_Listes/ListeParallelogramme.class new file mode 100644 index 0000000000000000000000000000000000000000..e397c6ee6d4bdbdc434339625339750a8182136d GIT binary patch literal 1235 zcmZ`%TTc^V5IwssUAin#Zbc}9l#9JV@vam}jEM$Q!~}!E_~1g$7iCR+15fz%_g(+%{Oz-oSEeEKMAP*`_JQe|j$=8cylWN;R%VeEfd#v0mlqZIV(~Qv{@bM-YrC^{(YjwL zY*_9?bHic8XXbJWI#zc15-#`y~HC#4u7NZp0 zRBm7hR}75ds$h&57)R9L8p8&z%f$`MQ%Wmh?!}{X%wj&hvaw}tQdZY-2U4S8AXeMX ziL6ZgvBWu@=6bHFr|g==ZO1IzrQ%()viY341Flsl?aKd zxm`|tg1?G31q+e47?jf?0)*14Xjk!Q4>J;LWchPd1XX-Tz^jzp)B*HbvQVoK>R~nu z7|_wlHo6d{lzEEDQpPZEG^j_2DslD{!AM=v8jGc;vE*_h`2`*8*&op97<+$yNdu`W zI@!`OOBiiTAM`lo5%dvklyJfj6b4m8AVhRNn>t67f0>%zQ1pQ(#cNvTOLp2ZoTHT~ z-y^un|9IpbMk9@)_vjHn@^2XX%0827+G}H(Nlb5fY+s!fR*pFAN6i9RL6T literal 0 HcmV?d00001 diff --git a/DEV/DEV3.2/TP03_Listes/ListeParallelogramme.java b/DEV/DEV3.2/TP03_Listes/ListeParallelogramme.java new file mode 100644 index 0000000..b978ec1 --- /dev/null +++ b/DEV/DEV3.2/TP03_Listes/ListeParallelogramme.java @@ -0,0 +1,48 @@ +import java.util.*; + +public class ListeParallelogramme{ + + public List liste; + + public ListeParallelogramme(){ + liste = new ArrayList<>(); + } + + public void add(){ + int taille = this.liste.size(); + if (taille == 0){ + this.liste.add(new Parallelogramme()); + } + else{ + Parallelogramme dernier = this.liste.get(this.liste.size()-1); + this.liste.add(new Parallelogramme(dernier)); + } + } + + public void delete(Parallelogramme parallelogramme){ + Parallelogramme suppr = parallelogramme; + while((parallelogramme = this.next(parallelogramme)) != null){ + parallelogramme.translationGauche(); + } + this.liste.remove(suppr); + } + + public int size(){ + return this.liste.size(); + } + + public Parallelogramme get(int indice){ + if (indice >= 0 && indice < this.liste.size()){ + return this.liste.get(indice); + } + return null; + } + + public Parallelogramme next(Parallelogramme parallelogramme){ + int indice = this.liste.indexOf(parallelogramme); + if (indice+1 < this.liste.size()){ + return this.liste.get(indice+1); + } + return null; + } +} \ No newline at end of file diff --git a/DEV/DEV3.2/TP03_Listes/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Ap*r(H< zZS?NsTj(pqjZD0W{x*^#P8AYHhFT768*&qAK`s`NTc#fcM5T+~0irkxm2_yBL?5Qn zk2$I@B87GGH%a#{DSt_d4+;5(1Ray4E7V~Gu~W<-t{|)6s)8}5;2JPSddH)~uKxi^ C=hKt` diff --git a/DEV/DEV3.2/TP03_Listes/Main.java b/DEV/DEV3.2/TP03_Listes/Main.java index 7c34d8e..7258541 100644 --- a/DEV/DEV3.2/TP03_Listes/Main.java +++ b/DEV/DEV3.2/TP03_Listes/Main.java @@ -9,20 +9,20 @@ public class Main{ fenetre.setLocation(0, 0); fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - java.util.List listeParallelogramme = new ArrayList<>(); - int i; - Parallelogramme suivant = new Parallelogramme(); - for (i=0; i<10; i++){ - listeParallelogramme.add(suivant); - suivant = new Parallelogramme(suivant); + ListeParallelogramme listeParallelogramme = new ListeParallelogramme(); + for (int i=0; i<10; i++){ + listeParallelogramme.add(); } - Action action = new Action(listeParallelogramme); - fenetre.addMouseListener(action); - Dessin lesDessins = new Dessin(listeParallelogramme); fenetre.add(lesDessins); fenetre.setVisible(true); + + JPanel origine = new JPanel(); + fenetre.add(origine); + + Action action = new Action(listeParallelogramme, origine, fenetre); + fenetre.addMouseListener(action); } } diff --git a/DEV/DEV3.2/TP03_Listes/Parallelogramme.class b/DEV/DEV3.2/TP03_Listes/Parallelogramme.class index a08a8d69d409e20de6acaeffeff168077067ebd7..665b44bf1fd94e24a9a02558d67630f7ecd44800 100644 GIT binary patch delta 754 zcmYLF&rcI!5Pjb+vh8LYYLP;*6{-}IFy zd-uS_ix-hd;=#KfjPcLV|G)$KW^45F-kWc}nRzoip&#b5{BuiGXR7+|3v6K^$Y0flg(!jjiuO?L&JP{LKJ8N6o*Lo_msel9dZwt4rH%tW9aAZFl{Qooo~ zm_Qz?60BDY)&tVfK8}ohKyN)d+fhgA)u_>tef8>FHd4VjxsTi>gwq}W{#QNS6MwLe T{`WBdUdKPsQ^q9!X*lx-sRV0) delta 426 zcmYjLIZgvX5Ug2yS?_2#v}S{il6UX{CgsK@Ew)7{(2Duxqd#xySTYl@Xn9zotK`_ljphMC84-j zh2n9{XvefWW)fM+A&wbE&a%T>h*P$jDVOT(X?Vmz@d9hOyr`n8F ub=$}`!W(Sf4?gJ;8 zvFKyaV4p>dL6eUyhS+cNiOB(zq>iQx(iRpOJq+u}L5&WzlI5_)2uBQ#njF*cxWNg7 zlLntETE@Jx7o1TvB~x>X`1#5eSJ9F4%I<7fns@zgo%y0f;w8r`EBcZ@SI&nuna0)-pIMq7e;FQA3S3JbVjJwxDVXCyjXEvjZ3C_x&k^i90Y2=h$4e_aR;4Zkn&F6e!bCz>9=NY$|VA9}% z&6i9Wd}TAuxMFWZYqpXP3yTv)x8#dgd!g%D}Kq@ z#*c2K=xk6g&M&!zK+*FbE^Q-5&S}wWp;KH|B$8WvjmnIszL&OCD^;;7nfmv(!t~0) zoKw`UN&BW0#&x~AcvUxQYHP}dS)D&375n zu%!-nX=v18yN0H~JA|1Utq-tjw4G_d6YP)b$8e3S;77r-xHfm9`l5*`uv<; ziD+l$#X2Nr(ncpXV{~vqP+pjq=*AOfAZGt8Cf^e7ZOQsYT>MR}{+$8VCGR2oq;^WG z5Al@!JQMt!1H2%~OVYxGVeB_p1~E1AhGC@=iPt1zcJn*Yj2V0+J1B#$X@g! liste = new ArrayDeque<>(); + int i; + try{ + for (i=0; i{ + + public + + public Q2Liste(){ + + } + + @Override + public void push(T valeur){ + + } + + @Override + public T pop(){ + + } + + @Override + public boolean isEmpty(){ + + } + + public T +} \ No newline at end of file diff --git a/DEV/DEV3.2/TP04_Piles/Q2Maillon.java b/DEV/DEV3.2/TP04_Piles/Q2Maillon.java new file mode 100644 index 0000000..f142a7d --- /dev/null +++ b/DEV/DEV3.2/TP04_Piles/Q2Maillon.java @@ -0,0 +1,11 @@ +public class Q2Maillon { + + T valeur; + Q2Maillon ancien; + + + public Q2Maillon(Q2Maillon ancien, T valeur){ + this.ancien = ancien; + this.valeur = valeur; + } +} \ No newline at end of file diff --git a/DEV/DEV3.2/TP04_Piles/Q2Pile.java b/DEV/DEV3.2/TP04_Piles/Q2Pile.java new file mode 100644 index 0000000..9ba5010 --- /dev/null +++ b/DEV/DEV3.2/TP04_Piles/Q2Pile.java @@ -0,0 +1,5 @@ +public interface Q2Pile { + void push(T valeur); + boolean isEmpty(void); + T pop(void); +} \ No newline at end of file