From a357b0ec5dd572036a174944823d1fa4df00c869 Mon Sep 17 00:00:00 2001 From: Bilou Date: Sun, 8 Jan 2023 06:59:28 +0100 Subject: [PATCH] $ --- build/Console/DisplayConsole.class | Bin 0 -> 2217 bytes build/Core.class | Bin 0 -> 841 bytes build/Graphics/GraphicFile.class | Bin 0 -> 2778 bytes build/Graphics/GraphicsCore.class | Bin 0 -> 5153 bytes build/Graphics/Traitable.class | Bin 0 -> 4634 bytes build/Graphics/Type/Array.class | Bin 0 -> 3549 bytes build/Graphics/Type/Bool.class | Bin 0 -> 1072 bytes build/Graphics/Type/Chaine.class | Bin 0 -> 914 bytes build/Graphics/Type/Entier.class | Bin 0 -> 938 bytes build/Graphics/Type/Flottant.class | Bin 0 -> 941 bytes build/Graphics/Type/Type.class | Bin 0 -> 323 bytes rapport.tex | 9 +++++ src/Graphics/GraphicFile.java | 52 ++++++++++++++++++++++++----- src/Graphics/Traitable.java | 6 ++-- src/Graphics/Type/Array.java | 20 ++++++++--- src/Graphics/Type/Bool.java | 13 ++++++++ src/Graphics/Type/Chaine.java | 9 +++++ src/Graphics/Type/Entier.java | 9 +++++ src/Graphics/Type/Flottant.java | 9 +++++ src/Graphics/Type/Type.java | 7 ++++ 20 files changed, 117 insertions(+), 17 deletions(-) create mode 100644 build/Console/DisplayConsole.class create mode 100644 build/Core.class create mode 100644 build/Graphics/GraphicFile.class create mode 100644 build/Graphics/GraphicsCore.class create mode 100644 build/Graphics/Traitable.class create mode 100644 build/Graphics/Type/Array.class create mode 100644 build/Graphics/Type/Bool.class create mode 100644 build/Graphics/Type/Chaine.class create mode 100644 build/Graphics/Type/Entier.class create mode 100644 build/Graphics/Type/Flottant.class create mode 100644 build/Graphics/Type/Type.class create mode 100644 rapport.tex diff --git a/build/Console/DisplayConsole.class b/build/Console/DisplayConsole.class new file mode 100644 index 0000000000000000000000000000000000000000..4700b3c2719d47f2f966293f5d096de07c70bec1 GIT binary patch literal 2217 zcmaJ?Uu;uV82_EN>upQfO1EyXv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-Y4*_GEatUm4mDRKQdL~k8|aruZVlNbLW=`4TK|A9+X!9 zU1xW=a_9!RRzM?epapgX0$KbNF7X80NZ>v6<6_<3=6`_xuR+CIylnfqZlvY__hOZC F_qo3;8sfvWZeVM>yV;!@`6tFF z-+0D{HnB;6fIrH3r!7GuyUCroXU@I%%)Rsb&#xhX$9Sq?8uJ_r95*zCv8c?FhMUM~ z2qDk0oWL#I)^G-U>UJ8I z|4ua8ghV>Rb{OUg2WCrr5k^}$hel2MwsW|p0;g(HG(W!--h{8!+^*lW_G}fLsJgyY zR&hEq$WofB>jZAwGIs31Ym4KF%b<^v+peJk6?t99U6eTt9rv)IkWGe}a|yd&o0cbS z*WtLY;{hIWJkqH-PZ(yO`@%c2n}Kn*Q8E}-5Aq*#`_gXPfl!gpa%H0xxXzyIcZ8Id zpR0I69&M{M>!X&asOj^XuNy6^DXBo=@?J!xyZ`nDg%pZof@4X8kgc=(O?-wC)BKNV z5;HSNKIWRECjXM8s~)@jITw7 zkVl%Hmij^}X>?6`cw1-$9{KE-W%%4cC^`M<#p)~xC)BwqPA37Z+=_EVVL+X^0#;`=X;*?aC tEI}iy6PhACGg7=vnv3emklqavQ6V`yxJo}rT10TfwKS(x*9ZvV`d`@KwsQag literal 0 HcmV?d00001 diff --git a/build/Graphics/GraphicFile.class b/build/Graphics/GraphicFile.class new file mode 100644 index 0000000000000000000000000000000000000000..28b48218bc4e7bd51efde61a25d8c0fe1492dd9b GIT binary patch literal 2778 zcmaJ@TXz#x6#h<|DuKX)-oL)0sFkffhwk z@Pdls1x4_Vii$VTri*qh7t2SV{TV*`v5+10gY=A3=L^X+f%eR6*PXXaM` zn=vJ!91oRXJ01?vK)Zxp*v-))!H+!>HejzXof5h3LJb}jZUYjwVz3lLc&rpr3=4CFM=E9 zXinttp;&8UAA_&mOlS-hG2PI*Gvgzg)vJ!AXr!#iQR8D>YTEtgusCcEhad= z=WvRl+NGu*cOo4r^LR|1G&7DsdS1p0I4$E0UX<|?USM=Hs0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c^!i^vS_bH%+*>igIr8%7J=bsnUwTtYqBrSM@nDzO5~u#!erp&7N5 zr`2>{tD_rUJ-V?L{d9dAMkC^A!cnZl2|_uE2u>6FS<3A-%I*z9{SBM&2d(@QTN%*G zLfFQZU^}bD4%UpFtOads19q{^*v+=1gLPvsJB)p75M9JbyN5wlJ3-KP6M z3C9MG%^X`eB#x~dHdemarrj!Ey}ro23snqm|AId5w_tcdP)@c55(<9DA+;Y Q3ut~PjkUS<3D>6o1#>3G`2YX_ literal 0 HcmV?d00001 diff --git a/build/Graphics/GraphicsCore.class b/build/Graphics/GraphicsCore.class new file mode 100644 index 0000000000000000000000000000000000000000..28de1b9b9eef69228a0b508e68b8b81a60b5d8dd GIT binary patch literal 5153 zcma)A33yc175;CM$(sz1EF%a3fl(tQlZ1$(VnS&l1PEqAOdt@{(wEE&c`!3CzIh2t zZ7o*CrLDDYRjbxo_qHyTi6zx8cC~i3`@Y!L+P$@VYx|$~-eiVA{rK|b+#kjScC&n z>UFow-WSF_Q7GK4;ob-q<5~f?Xt*ze2Hao4V-E;;P{2cBJS^KE(D1X{$ zB7$}Jq+p-X@Tmwsjn4@9Yy_S7To|91@mT?1(C}OsU)1oWFuoi?556MUuL}5@fagWV z*9Ck-y!uUH`7Ht87VsUxeOG4R)9`%_KTwFS?O3;ZOV{Qd>v~rwI(GDRZtqZ-)wRnQ zH(HE6Zp&ILZDz8TooOR&qO-d*u_bW?ZD`1Fl39h>g){BMbQ$~XF_(ubTyw9x&N5TU zJm0-7**#WfXUoPeW6(^Iq;$+lDOCClGN#+IrMHXd@|9M`a#wM`zM)^CtldtU3RPWJ z#_S$T51P(qV=zTbnUGP?u;pZ3k*#oIeS^nsN>q=L@kB+k=8&C9`c&29M#@SWF0ETV zB#>6r`&y(7D%j^b)U!>5&+K!Jq1_2%G>{n?XCg&lY@Xj++^`#h26}b5EUUz-!9nx@8KB0^KES$9wE_g-D-0<_wwZ zEb(Q{ddCtBbJ%hW0j7b7@=#YBo|UoL{l>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CtFgU6N@JH!*-p`y_dTggiFi5#y!~iH$>oiS1ypX^d-P6E|6;HLO{$h_u2b z?z?W%NBVvwcHd1~w{e@2))pad-S^CYPb|zCZnHl%&_5teW^z_8 zziLvy;Pehj372B~P1|$^1X{Y*JJWqqATpH8^0@j@(>9J3&rcco6Z(`zN%(ltX4@r| z>c$;CGka8@bJrAnO~LaDUJy{G4M(~ou(O)|^+yWSa?8n8h?=|nK+8c=spN)05LYyU zVJTU&FlXrtgnPwYKr@JGdS&~n@a>Q+cV}$soRN`yU_P%e?2>fRZ~%ujT*eg*U&l8z>;tu%T_*W4*t14fQbxmmJfPta4hx7L4d2AK zG>qb?hHv8vb6;>dr{O#JE;DJ`4rSR~(M_*1mCIR%&J;J76KiNjClxe&4=+krhBSO% zZm-ZfXgj8nSMUR=_(Q39RUlbz>5!Fk9Nl&l{77p3SZck*G?i-|pdSjZNsXUKjh`}> ziyB_W&**K=%>X5nWVtRe;&>Zb>*R}sEqYeB3hc!$itM6gX?O^O0vjvq?m*GBvIa{e zG})nH5wB?YxdiwZxW3LI$!876F~)+Ta}H6|=Z+fAOfFlfkKu-jl7=OT@~c>;#f~!? zUc;D%ahwonDv!?1D-EqV{SbC|bAp*ZDb zni=RC9~N>3;I`XteC2^rg~fz*R|E zw{+ggRbR2v)fKTct7dYx!-^xin}gx74D;i}-LNx8zr;AE&&?S&F}pjc<`ZXq&V9!7 z=t#kQnl%#UMJb~z!#gz+&7NXj06QPi@2Rix8GAj?Y>B;FWMR@LAyq~ zzzmWN_+`fb@p7>H&T>Wn()k8=noFNy^eb~TpE8@6= zfVT19j_bG+e?kZTj86OmJMd3*e#N$lV8IGRd zUw7fq5PB1h3R2=WD_o{>#rMseNkqbl?Ug~ETjWMNtW literal 0 HcmV?d00001 diff --git a/build/Graphics/Type/Bool.class b/build/Graphics/Type/Bool.class new file mode 100644 index 0000000000000000000000000000000000000000..2d6cf95370f9cb713e749c769bc9c0396f8b2a9f GIT binary patch literal 1072 zcmZuw+fvg|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83!rQejB>O53+aWsDt9L zouRJecc@h93`Swkdn1*%sl6bQUbv~cX`zM<3sbOkJhAW;RSVOo>e#g4;F&-{29br^ zSftbZd5H=ee?67tVr*HSO!`o0s*YDQ~{ZJxzkDshjiAW^cvq4;^cO`U@nn#V$luB50zRQrk2B)!P`tuein(uGEO5?p49 jvtU#vvNzBs(bf7ZqIYhf-=R;UCR?#YJq>rMsn+Fx{QJ18 literal 0 HcmV?d00001 diff --git a/build/Graphics/Type/Flottant.class b/build/Graphics/Type/Flottant.class new file mode 100644 index 0000000000000000000000000000000000000000..906a8cfd102cf7d53c4db3e653ce64e4bb4b8093 GIT binary patch literal 941 zcmZXS-EPxB5QWb=KemJO)6f=5p%e-waiN9_galP3D3qJ1y-4Z3lbGPj*pX`&^{oI= zKwR(uJQU)r?FKthq}h1q+cP_7_Rrs6zX3eMlNxl~)}dit#~s|2|2As4hx-~fYy5bi zqNAd#!W5{S*6@xXIlFgXmoAQWh&N&8b|?a3XcsynXlM!Nz_ zo%xg9V}bHsFrsd==lae;{BhufM>bUjw6PNEu@ZD0KZX zORE$(I-g`x$Lalx?6ia8_Tk{f8Ag=Q`|jAcqd26<^W6P2p!YVkCm-D5sU_bn%G^@BJZI{U8dtiJCBQDpnkw)E0K6I%wZz)pJC=fHkrKj zd`udj7Q2SRA3NiFQ)E+ItK4s*#kjz)rwIWpm_H!QtqUmTSClSL{=y_1U~HqzSZ8cd zR34RwuVOKixW!eFsF>eS{yaS<>mY%au$-am8LAOgexfo4~*O=lo i7-bXr8z{5rM(ZWf8*}J)sI#a}Gghgm;3hTYy7mtwqPg7w literal 0 HcmV?d00001 diff --git a/build/Graphics/Type/Type.class b/build/Graphics/Type/Type.class new file mode 100644 index 0000000000000000000000000000000000000000..38e343be77aa64e25b919560183cc5c382f5a1e6 GIT binary patch literal 323 zcmZXP&uYRz5XQgJ=ozSQp=FUubzE_{(ViZ|{BT+cP3`!@M+c z@}V?ua;wzSDlo5D8Ch&qybmf^KLqdZnA^}cfzaUd0mmUU;c&r`(Pl1~HqhbTMYra? NN@sRc`WV#R%P-~IOnCqR literal 0 HcmV?d00001 diff --git a/rapport.tex b/rapport.tex new file mode 100644 index 0000000..022d884 --- /dev/null +++ b/rapport.tex @@ -0,0 +1,9 @@ +\documentclass[11pt,a4paper]{article} +\usepackage[utf8]{inputenc} +\usepackage{amsmath} +\usepackage{amsfonts} +\usepackage{amssymb} +\author{Bilal Boudemline & Romain Besson} + +\begin{document} +\end{document} diff --git a/src/Graphics/GraphicFile.java b/src/Graphics/GraphicFile.java index 0c74caf..6917c8f 100644 --- a/src/Graphics/GraphicFile.java +++ b/src/Graphics/GraphicFile.java @@ -3,11 +3,15 @@ package Graphics; import java.io.InputStream; import java.io.IOException; import java.util.HashMap; + +import javax.swing.JLabel; import javax.swing.JPanel; - import Graphics.Type.*; - +import java.awt.FlowLayout; import java.awt.GridLayout; +import java.awt.GridBagConstraints; +import java.awt.GridBagLayout; +import java.awt.Color; import java.net.URL; /** @@ -23,21 +27,51 @@ public class GraphicFile extends JPanel { super(); try { System.out.println("[+] Lecture de " + url); - this.setLayout(new GridLayout(100, 1)); + this.setLayout(new FlowLayout(FlowLayout.LEFT)); + this.setLocation(500, 500); InputStream jsonReader = url.openStream(); - - /** - * C'est ici que le hashmap est stocke - */ Traitable fileTraited = new Traitable(jsonReader); + jsonReader.close(); + HashMap> allVariables = fileTraited.getVariableMap(); + JPanel core = new JPanel(new GridBagLayout()); + GridBagConstraints settings = new GridBagConstraints(); + settings.gridx = 0; + settings.gridy = 0; + settings.anchor = GridBagConstraints.WEST; + + core.add(new JLabel("{"), settings); + + int rows = 1; + settings.gridy = 1; + settings.gridx = 2; for (String key : allVariables.keySet()) { - System.out.println("\"" + key + "\": " + allVariables.get(key).display()); + settings.gridy = rows; + + JLabel name = new JLabel("\"" + key + "\": "); + name.setForeground(new Color(163, 90, 0)); + + JLabel value = new JLabel(allVariables.get(key).display()); + value.setForeground(allVariables.get(key).getColor()); + + JPanel fusion = new JPanel(new GridLayout(1, 1)); + fusion.add(name); + + fusion.add(value); + + core.add(fusion, settings); + rows++; } - jsonReader.close(); + settings.gridx = 0; + settings.gridy = rows; + core.add(new JLabel("}"), settings); + + this.add(core); + + this.setVisible(true); } catch (IOException e) { System.out.println("[!] Fichier " + url.getFile() + " n'existe pas"); } diff --git a/src/Graphics/Traitable.java b/src/Graphics/Traitable.java index d87a562..e5a84d7 100644 --- a/src/Graphics/Traitable.java +++ b/src/Graphics/Traitable.java @@ -129,9 +129,7 @@ public class Traitable { * @return Le type */ private String getType(String value) { - if (value.contains("\"")) { - return "string"; - } else if (value.contains("{")) { + if (value.contains("{")) { return "object"; } else if (value.contains("[")) { return "array"; @@ -141,6 +139,8 @@ public class Traitable { return "double"; } else if (value.contains("null")) { return "null"; + } else if (value.contains("\"")) { + return "string"; } else { return "int"; } diff --git a/src/Graphics/Type/Array.java b/src/Graphics/Type/Array.java index b4a4787..f3cc123 100644 --- a/src/Graphics/Type/Array.java +++ b/src/Graphics/Type/Array.java @@ -1,5 +1,6 @@ package Graphics.Type; +import java.awt.Color; import Graphics.Type.*; import java.util.LinkedList; import java.util.List; @@ -11,6 +12,7 @@ import java.util.List; public class Array implements Type>> { private String valueRaw; private List> value; + private Color color; public Array(String valueRaw) { this.valueRaw = valueRaw.substring(1, valueRaw.length() - 1); @@ -51,12 +53,12 @@ public class Array implements Type>> { } public String getType(String value) { - if (value.contains("\"")) { - return "string"; - } else if (value.contains("{")) { + if (value.contains("{")) { return "object"; } else if (value.contains("[")) { return "array"; + } else if (value.contains("\"")) { + return "string"; } else if (value.contains("true") || value.contains("false")) { return "boolean"; } else if (value.contains(".")) { @@ -72,17 +74,25 @@ public class Array implements Type>> { return this.valueRaw; } + @Override + public Color getColor() { + return this.color; + } + @Override public String display() { StringBuilder str = new StringBuilder(); - str.append("["); + str.append("[ "); for (int i = 0; i <= this.value.size() - 1; i++) { str.append(this.value.get(i).display() + ", "); } - str.append("]"); + str.deleteCharAt(str.length() - 1); + str.deleteCharAt(str.length() - 1); + + str.append(" ]"); return str.toString(); } diff --git a/src/Graphics/Type/Bool.java b/src/Graphics/Type/Bool.java index 75d8498..b95aa77 100644 --- a/src/Graphics/Type/Bool.java +++ b/src/Graphics/Type/Bool.java @@ -1,14 +1,27 @@ package Graphics.Type; +import java.awt.Color; + /** * Representation du type boolean */ public class Bool implements Type { private Boolean value; + private Color color; public Bool(Boolean value) { this.value = value; + if (value) { + this.color = Color.GREEN; + } else { + this.color = Color.RED; + } + } + + @Override + public Color getColor() { + return this.color; } @Override diff --git a/src/Graphics/Type/Chaine.java b/src/Graphics/Type/Chaine.java index 554afe2..04ccfdb 100644 --- a/src/Graphics/Type/Chaine.java +++ b/src/Graphics/Type/Chaine.java @@ -1,14 +1,23 @@ package Graphics.Type; +import java.awt.Color; + /** * Representation du type string */ public class Chaine implements Type { private String value; + private Color color; public Chaine(String value) { this.value = value; + this.color = Color.PINK; + } + + @Override + public Color getColor() { + return this.color; } @Override diff --git a/src/Graphics/Type/Entier.java b/src/Graphics/Type/Entier.java index 5d123d9..f040e33 100644 --- a/src/Graphics/Type/Entier.java +++ b/src/Graphics/Type/Entier.java @@ -1,14 +1,23 @@ package Graphics.Type; +import java.awt.Color; + /** * Representation du type int */ public class Entier implements Type { public Integer value; + private Color color; public Entier(Integer value) { this.value = value; + this.color = Color.BLUE; + } + + @Override + public Color getColor() { + return this.color; } @Override diff --git a/src/Graphics/Type/Flottant.java b/src/Graphics/Type/Flottant.java index a51a318..8930d0e 100644 --- a/src/Graphics/Type/Flottant.java +++ b/src/Graphics/Type/Flottant.java @@ -1,14 +1,23 @@ package Graphics.Type; +import java.awt.Color; + /** * Representation du type double */ public class Flottant implements Type { private Double value; + private Color color; public Flottant(Double value) { this.value = value; + this.color = Color.BLUE; + } + + @Override + public Color getColor() { + return this.color; } @Override diff --git a/src/Graphics/Type/Type.java b/src/Graphics/Type/Type.java index 4ece8aa..e205ac1 100644 --- a/src/Graphics/Type/Type.java +++ b/src/Graphics/Type/Type.java @@ -1,5 +1,7 @@ package Graphics.Type; +import java.awt.Color; + public interface Type { /** * Retourner le type de la variable @@ -15,6 +17,11 @@ public interface Type { */ public T getValue(); + /** + * Recuperer la couleur de syntaxe d'un type + */ + public Color getColor(); + /** * Afficher la valeur / toutes les valeurs */