diff --git a/.classpath b/.classpath
index 256905e..ea03344 100644
--- a/.classpath
+++ b/.classpath
@@ -1,7 +1,11 @@
-
+
+
+
+
+
@@ -10,6 +14,6 @@
-
+
diff --git a/aW.xml b/aW.xml
index ba5525e..1547bdb 100644
--- a/aW.xml
+++ b/aW.xml
@@ -3,7 +3,7 @@
falseguiC:\Users\pabr6\git\analyseWriter\MEPTL\analyseWriter.jar
- C:\Users\pabr6\OneDrive\Documents\Troisième exercices avec analyseWriter\analyseWriter\analyseWriter.exe
+ C:\Users\pabr6\OneDrive\Desktop\analyseWriter.exeErreur
diff --git a/analyseWriter.jar b/analyseWriter.jar
index 3714db2..b126466 100644
Binary files a/analyseWriter.jar and b/analyseWriter.jar differ
diff --git a/bin/.gitignore b/bin/.gitignore
index 4c2dcb6..67493bc 100644
--- a/bin/.gitignore
+++ b/bin/.gitignore
@@ -1,2 +1,3 @@
-/app/
/MEPTL/
+/app/
+/calcul/
diff --git a/bin/MEPTL/rechercherUnNodeStudent.class b/bin/MEPTL/rechercherUnNodeStudent.class
index 6c33b0f..c01f4b8 100644
Binary files a/bin/MEPTL/rechercherUnNodeStudent.class and b/bin/MEPTL/rechercherUnNodeStudent.class differ
diff --git a/bin/app/afficheText.class b/bin/app/afficheText.class
index 2235139..3004769 100644
Binary files a/bin/app/afficheText.class and b/bin/app/afficheText.class differ
diff --git a/bin/app/attributs$1.class b/bin/app/attributs$1.class
index a0680d5..ab827b8 100644
Binary files a/bin/app/attributs$1.class and b/bin/app/attributs$1.class differ
diff --git a/bin/app/attributs$10.class b/bin/app/attributs$10.class
index fca4bdf..3b96dc3 100644
Binary files a/bin/app/attributs$10.class and b/bin/app/attributs$10.class differ
diff --git a/bin/app/attributs$11.class b/bin/app/attributs$11.class
index e5ed750..fa49633 100644
Binary files a/bin/app/attributs$11.class and b/bin/app/attributs$11.class differ
diff --git a/bin/app/attributs$2.class b/bin/app/attributs$2.class
index a5ddd1e..7843c9e 100644
Binary files a/bin/app/attributs$2.class and b/bin/app/attributs$2.class differ
diff --git a/bin/app/attributs$3.class b/bin/app/attributs$3.class
index 99dfd6f..8cd567d 100644
Binary files a/bin/app/attributs$3.class and b/bin/app/attributs$3.class differ
diff --git a/bin/app/attributs$4.class b/bin/app/attributs$4.class
index e288a44..48c4815 100644
Binary files a/bin/app/attributs$4.class and b/bin/app/attributs$4.class differ
diff --git a/bin/app/attributs$5.class b/bin/app/attributs$5.class
index 85b60b8..698bd59 100644
Binary files a/bin/app/attributs$5.class and b/bin/app/attributs$5.class differ
diff --git a/bin/app/attributs$6.class b/bin/app/attributs$6.class
index 534d139..5511b01 100644
Binary files a/bin/app/attributs$6.class and b/bin/app/attributs$6.class differ
diff --git a/bin/app/attributs$7.class b/bin/app/attributs$7.class
index b342758..ebd75b8 100644
Binary files a/bin/app/attributs$7.class and b/bin/app/attributs$7.class differ
diff --git a/bin/app/attributs$8.class b/bin/app/attributs$8.class
index 2df7188..cf9c133 100644
Binary files a/bin/app/attributs$8.class and b/bin/app/attributs$8.class differ
diff --git a/bin/app/attributs$9.class b/bin/app/attributs$9.class
index 92aa609..7e4fb7e 100644
Binary files a/bin/app/attributs$9.class and b/bin/app/attributs$9.class differ
diff --git a/bin/app/attributs$MyMouseListener.class b/bin/app/attributs$MyMouseListener.class
index ab995c8..6bcdae9 100644
Binary files a/bin/app/attributs$MyMouseListener.class and b/bin/app/attributs$MyMouseListener.class differ
diff --git a/bin/app/attributs.class b/bin/app/attributs.class
index 46c70e5..60ad300 100644
Binary files a/bin/app/attributs.class and b/bin/app/attributs.class differ
diff --git a/bin/app/create$1.class b/bin/app/create$1.class
index dee54a0..3cbca94 100644
Binary files a/bin/app/create$1.class and b/bin/app/create$1.class differ
diff --git a/bin/app/create$10.class b/bin/app/create$10.class
index f82071a..ede9d34 100644
Binary files a/bin/app/create$10.class and b/bin/app/create$10.class differ
diff --git a/bin/app/create$11.class b/bin/app/create$11.class
index 842ed8b..d3a4823 100644
Binary files a/bin/app/create$11.class and b/bin/app/create$11.class differ
diff --git a/bin/app/create$12.class b/bin/app/create$12.class
index 3f9c021..aa5eff7 100644
Binary files a/bin/app/create$12.class and b/bin/app/create$12.class differ
diff --git a/bin/app/create$13.class b/bin/app/create$13.class
index b5a90fc..c08ffc4 100644
Binary files a/bin/app/create$13.class and b/bin/app/create$13.class differ
diff --git a/bin/app/create$14.class b/bin/app/create$14.class
index 4589b7c..fd94283 100644
Binary files a/bin/app/create$14.class and b/bin/app/create$14.class differ
diff --git a/bin/app/create$15.class b/bin/app/create$15.class
index 20cc962..e4e2bd9 100644
Binary files a/bin/app/create$15.class and b/bin/app/create$15.class differ
diff --git a/bin/app/create$16.class b/bin/app/create$16.class
index 7e5b31d..17db0be 100644
Binary files a/bin/app/create$16.class and b/bin/app/create$16.class differ
diff --git a/bin/app/create$17.class b/bin/app/create$17.class
index 2e59ec1..d419807 100644
Binary files a/bin/app/create$17.class and b/bin/app/create$17.class differ
diff --git a/bin/app/create$18.class b/bin/app/create$18.class
index bb4cc13..ec31208 100644
Binary files a/bin/app/create$18.class and b/bin/app/create$18.class differ
diff --git a/bin/app/create$19.class b/bin/app/create$19.class
index 9492bef..ac12f90 100644
Binary files a/bin/app/create$19.class and b/bin/app/create$19.class differ
diff --git a/bin/app/create$2.class b/bin/app/create$2.class
index f4c5ef5..96a3edb 100644
Binary files a/bin/app/create$2.class and b/bin/app/create$2.class differ
diff --git a/bin/app/create$20.class b/bin/app/create$20.class
index 0bade60..83bca4c 100644
Binary files a/bin/app/create$20.class and b/bin/app/create$20.class differ
diff --git a/bin/app/create$21.class b/bin/app/create$21.class
index 62d58b0..bdbaf90 100644
Binary files a/bin/app/create$21.class and b/bin/app/create$21.class differ
diff --git a/bin/app/create$22.class b/bin/app/create$22.class
index 4260570..7c5dc71 100644
Binary files a/bin/app/create$22.class and b/bin/app/create$22.class differ
diff --git a/bin/app/create$23.class b/bin/app/create$23.class
index 6491dec..4dfcac2 100644
Binary files a/bin/app/create$23.class and b/bin/app/create$23.class differ
diff --git a/bin/app/create$24.class b/bin/app/create$24.class
index 86bf27d..a8d3857 100644
Binary files a/bin/app/create$24.class and b/bin/app/create$24.class differ
diff --git a/bin/app/create$25.class b/bin/app/create$25.class
index 545993d..95d457c 100644
Binary files a/bin/app/create$25.class and b/bin/app/create$25.class differ
diff --git a/bin/app/create$26.class b/bin/app/create$26.class
index 4f04b3b..c8da538 100644
Binary files a/bin/app/create$26.class and b/bin/app/create$26.class differ
diff --git a/bin/app/create$27.class b/bin/app/create$27.class
index 16b6fe4..4fdc131 100644
Binary files a/bin/app/create$27.class and b/bin/app/create$27.class differ
diff --git a/bin/app/create$28.class b/bin/app/create$28.class
index 46c5e9e..388823d 100644
Binary files a/bin/app/create$28.class and b/bin/app/create$28.class differ
diff --git a/bin/app/create$29.class b/bin/app/create$29.class
index 59d3cd5..aca8ea0 100644
Binary files a/bin/app/create$29.class and b/bin/app/create$29.class differ
diff --git a/bin/app/create$3.class b/bin/app/create$3.class
index 4c21db9..1163305 100644
Binary files a/bin/app/create$3.class and b/bin/app/create$3.class differ
diff --git a/bin/app/create$30.class b/bin/app/create$30.class
index 942626b..5ea96f0 100644
Binary files a/bin/app/create$30.class and b/bin/app/create$30.class differ
diff --git a/bin/app/create$31.class b/bin/app/create$31.class
index 11c976a..3e18624 100644
Binary files a/bin/app/create$31.class and b/bin/app/create$31.class differ
diff --git a/bin/app/create$32.class b/bin/app/create$32.class
index db97df3..f190d1f 100644
Binary files a/bin/app/create$32.class and b/bin/app/create$32.class differ
diff --git a/bin/app/create$33.class b/bin/app/create$33.class
index 5110a5a..46799ed 100644
Binary files a/bin/app/create$33.class and b/bin/app/create$33.class differ
diff --git a/bin/app/create$34.class b/bin/app/create$34.class
index e62918d..378b6bf 100644
Binary files a/bin/app/create$34.class and b/bin/app/create$34.class differ
diff --git a/bin/app/create$35.class b/bin/app/create$35.class
index 7c559e4..4da8a32 100644
Binary files a/bin/app/create$35.class and b/bin/app/create$35.class differ
diff --git a/bin/app/create$36.class b/bin/app/create$36.class
index 7ab61c0..7dfd64d 100644
Binary files a/bin/app/create$36.class and b/bin/app/create$36.class differ
diff --git a/bin/app/create$37.class b/bin/app/create$37.class
index 660d590..9c2c75a 100644
Binary files a/bin/app/create$37.class and b/bin/app/create$37.class differ
diff --git a/bin/app/create$38.class b/bin/app/create$38.class
index 2c3111c..abb96f0 100644
Binary files a/bin/app/create$38.class and b/bin/app/create$38.class differ
diff --git a/bin/app/create$39.class b/bin/app/create$39.class
index 498e6c4..0de2165 100644
Binary files a/bin/app/create$39.class and b/bin/app/create$39.class differ
diff --git a/bin/app/create$4.class b/bin/app/create$4.class
index db16aad..2a0645f 100644
Binary files a/bin/app/create$4.class and b/bin/app/create$4.class differ
diff --git a/bin/app/create$40.class b/bin/app/create$40.class
index 9608c18..c0ccc8f 100644
Binary files a/bin/app/create$40.class and b/bin/app/create$40.class differ
diff --git a/bin/app/create$41.class b/bin/app/create$41.class
index 5ee1686..0170525 100644
Binary files a/bin/app/create$41.class and b/bin/app/create$41.class differ
diff --git a/bin/app/create$42.class b/bin/app/create$42.class
index 8f5de03..373889e 100644
Binary files a/bin/app/create$42.class and b/bin/app/create$42.class differ
diff --git a/bin/app/create$43.class b/bin/app/create$43.class
index 09fa54e..bc242c7 100644
Binary files a/bin/app/create$43.class and b/bin/app/create$43.class differ
diff --git a/bin/app/create$44.class b/bin/app/create$44.class
index 303de86..91a8f20 100644
Binary files a/bin/app/create$44.class and b/bin/app/create$44.class differ
diff --git a/bin/app/create$45.class b/bin/app/create$45.class
index 1927764..02c3ede 100644
Binary files a/bin/app/create$45.class and b/bin/app/create$45.class differ
diff --git a/bin/app/create$46.class b/bin/app/create$46.class
index 440a77f..5d0ef14 100644
Binary files a/bin/app/create$46.class and b/bin/app/create$46.class differ
diff --git a/bin/app/create$47.class b/bin/app/create$47.class
index c44c849..050ec68 100644
Binary files a/bin/app/create$47.class and b/bin/app/create$47.class differ
diff --git a/bin/app/create$48.class b/bin/app/create$48.class
index b05db4b..6e669ca 100644
Binary files a/bin/app/create$48.class and b/bin/app/create$48.class differ
diff --git a/bin/app/create$49.class b/bin/app/create$49.class
index 86f3bf3..25f3ab2 100644
Binary files a/bin/app/create$49.class and b/bin/app/create$49.class differ
diff --git a/bin/app/create$5.class b/bin/app/create$5.class
index 7c01741..ccf2470 100644
Binary files a/bin/app/create$5.class and b/bin/app/create$5.class differ
diff --git a/bin/app/create$50.class b/bin/app/create$50.class
index bd01035..1692e94 100644
Binary files a/bin/app/create$50.class and b/bin/app/create$50.class differ
diff --git a/bin/app/create$51.class b/bin/app/create$51.class
index 78a35ff..0754ee7 100644
Binary files a/bin/app/create$51.class and b/bin/app/create$51.class differ
diff --git a/bin/app/create$52.class b/bin/app/create$52.class
index b1aa0a5..37dc9b9 100644
Binary files a/bin/app/create$52.class and b/bin/app/create$52.class differ
diff --git a/bin/app/create$53.class b/bin/app/create$53.class
index 44c2b89..6feb2ca 100644
Binary files a/bin/app/create$53.class and b/bin/app/create$53.class differ
diff --git a/bin/app/create$54.class b/bin/app/create$54.class
index d111663..8ff6f8f 100644
Binary files a/bin/app/create$54.class and b/bin/app/create$54.class differ
diff --git a/bin/app/create$55.class b/bin/app/create$55.class
index 12f3550..56e9980 100644
Binary files a/bin/app/create$55.class and b/bin/app/create$55.class differ
diff --git a/bin/app/create$56.class b/bin/app/create$56.class
index 519293b..5c2ae1b 100644
Binary files a/bin/app/create$56.class and b/bin/app/create$56.class differ
diff --git a/bin/app/create$57.class b/bin/app/create$57.class
index ddfd879..bed37ea 100644
Binary files a/bin/app/create$57.class and b/bin/app/create$57.class differ
diff --git a/bin/app/create$58.class b/bin/app/create$58.class
index e0c8865..5b5868a 100644
Binary files a/bin/app/create$58.class and b/bin/app/create$58.class differ
diff --git a/bin/app/create$59.class b/bin/app/create$59.class
index 385a94c..f0521cb 100644
Binary files a/bin/app/create$59.class and b/bin/app/create$59.class differ
diff --git a/bin/app/create$6.class b/bin/app/create$6.class
index 4f539c0..76229ad 100644
Binary files a/bin/app/create$6.class and b/bin/app/create$6.class differ
diff --git a/bin/app/create$7.class b/bin/app/create$7.class
index 8e1e373..f1e70ab 100644
Binary files a/bin/app/create$7.class and b/bin/app/create$7.class differ
diff --git a/bin/app/create$8.class b/bin/app/create$8.class
index fbaacdd..79df58b 100644
Binary files a/bin/app/create$8.class and b/bin/app/create$8.class differ
diff --git a/bin/app/create$9.class b/bin/app/create$9.class
index 3fc6a68..733baa2 100644
Binary files a/bin/app/create$9.class and b/bin/app/create$9.class differ
diff --git a/bin/app/create.class b/bin/app/create.class
index 5dd59f1..481a286 100644
Binary files a/bin/app/create.class and b/bin/app/create.class differ
diff --git a/bin/app/mainApp$1.class b/bin/app/mainApp$1.class
index 0769937..40a40b9 100644
Binary files a/bin/app/mainApp$1.class and b/bin/app/mainApp$1.class differ
diff --git a/bin/app/mainApp$2.class b/bin/app/mainApp$2.class
index c0cf6b3..56ab8eb 100644
Binary files a/bin/app/mainApp$2.class and b/bin/app/mainApp$2.class differ
diff --git a/bin/app/mainApp.class b/bin/app/mainApp.class
index ea00df2..e478786 100644
Binary files a/bin/app/mainApp.class and b/bin/app/mainApp.class differ
diff --git a/bin/app/proprieteFichierAnalyse$1.class b/bin/app/proprieteFichierAnalyse$1.class
index 247ab9e..4419ee3 100644
Binary files a/bin/app/proprieteFichierAnalyse$1.class and b/bin/app/proprieteFichierAnalyse$1.class differ
diff --git a/bin/app/proprieteFichierAnalyse$2.class b/bin/app/proprieteFichierAnalyse$2.class
index 9e1ab04..c58b3ad 100644
Binary files a/bin/app/proprieteFichierAnalyse$2.class and b/bin/app/proprieteFichierAnalyse$2.class differ
diff --git a/bin/app/proprieteFichierAnalyse$3.class b/bin/app/proprieteFichierAnalyse$3.class
index 3889a32..5ae22f2 100644
Binary files a/bin/app/proprieteFichierAnalyse$3.class and b/bin/app/proprieteFichierAnalyse$3.class differ
diff --git a/bin/app/proprieteFichierAnalyse$4.class b/bin/app/proprieteFichierAnalyse$4.class
index b2e3dc0..187caf0 100644
Binary files a/bin/app/proprieteFichierAnalyse$4.class and b/bin/app/proprieteFichierAnalyse$4.class differ
diff --git a/bin/app/proprieteFichierAnalyse.class b/bin/app/proprieteFichierAnalyse.class
index 9132f37..e3fb186 100644
Binary files a/bin/app/proprieteFichierAnalyse.class and b/bin/app/proprieteFichierAnalyse.class differ
diff --git a/bin/calcul/listeAttributsAnalyseWriter.class b/bin/calcul/listeAttributsAnalyseWriter.class
index c17b510..8631313 100644
Binary files a/bin/calcul/listeAttributsAnalyseWriter.class and b/bin/calcul/listeAttributsAnalyseWriter.class differ
diff --git a/bin/calcul/listeNodeAnalyseWriter.class b/bin/calcul/listeNodeAnalyseWriter.class
index b4e4397..a38b997 100644
Binary files a/bin/calcul/listeNodeAnalyseWriter.class and b/bin/calcul/listeNodeAnalyseWriter.class differ
diff --git a/bin/resources/atraversanalysestyle.png b/bin/resources/atraversanalysestyle.png
new file mode 100644
index 0000000..6593a5a
Binary files /dev/null and b/bin/resources/atraversanalysestyle.png differ
diff --git a/bin/resources/atraversanalysestylemini.png b/bin/resources/atraversanalysestylemini.png
new file mode 100644
index 0000000..e4d8607
Binary files /dev/null and b/bin/resources/atraversanalysestylemini.png differ
diff --git a/bin/resources/treeClose.png b/bin/resources/treeClose.png
new file mode 100644
index 0000000..37244f0
Binary files /dev/null and b/bin/resources/treeClose.png differ
diff --git a/bin/resources/treeLeaf.png b/bin/resources/treeLeaf.png
new file mode 100644
index 0000000..c7961a0
Binary files /dev/null and b/bin/resources/treeLeaf.png differ
diff --git a/icons/atraversanalysestyle.png b/icons/atraversanalysestyle.png
new file mode 100644
index 0000000..6593a5a
Binary files /dev/null and b/icons/atraversanalysestyle.png differ
diff --git a/icons/atraversanalysestyle.svg b/icons/atraversanalysestyle.svg
new file mode 100644
index 0000000..edad5ea
--- /dev/null
+++ b/icons/atraversanalysestyle.svg
@@ -0,0 +1,117 @@
+
+
diff --git a/icons/atraversanalysestylemini.png b/icons/atraversanalysestylemini.png
new file mode 100644
index 0000000..e4d8607
Binary files /dev/null and b/icons/atraversanalysestylemini.png differ
diff --git a/icons/treeClose.png b/icons/treeClose.png
new file mode 100644
index 0000000..37244f0
Binary files /dev/null and b/icons/treeClose.png differ
diff --git a/icons/treeClose.svg b/icons/treeClose.svg
new file mode 100644
index 0000000..8654a32
--- /dev/null
+++ b/icons/treeClose.svg
@@ -0,0 +1,268 @@
+
+
diff --git a/icons/treeLeaf.png b/icons/treeLeaf.png
new file mode 100644
index 0000000..c7961a0
Binary files /dev/null and b/icons/treeLeaf.png differ
diff --git a/icons/treeLeaf.svg b/icons/treeLeaf.svg
new file mode 100644
index 0000000..3ce910c
--- /dev/null
+++ b/icons/treeLeaf.svg
@@ -0,0 +1,258 @@
+
+
diff --git a/src/MEPTL/rechercherUnNodeStudent.java b/src/MEPTL/rechercherUnNodeStudent.java
index 77e2346..9d0560b 100644
--- a/src/MEPTL/rechercherUnNodeStudent.java
+++ b/src/MEPTL/rechercherUnNodeStudent.java
@@ -138,10 +138,10 @@ public class rechercherUnNodeStudent {
nodStudent = findByContentZero(nameNode, nodSujet, nod0Student, nod1Student, nod2Student, a);
}
- //*****************************************************************
- //** Recherche Le node text:p par les différents contenu du node **
- //** text:title - text:subject - text:initial-creator - text:tab **
- //*****************************************************************
+ //***********************************************
+ //** Recherche le node par son nom **
+ //** sauf pour draw:frame **
+ //***********************************************
if(nodStudent==null) {
nodStudent = findByNameNode(nameNode, nodSujet, nod0Student, nod1Student, nod2Student, a);
}
@@ -400,7 +400,7 @@ public class rechercherUnNodeStudent {
private static node findDrawFrame(String nameNode, node nodSujet,node nod0Student, node nod1Student, node nod2Student, Run a) {
node nodStudent = null;
String nameDraw = outils.withoutCodeAndPointPourRechercheContenuExact(nodSujet.getAttributs().get("draw:name"));
- System.out.println("recherche image ou cadre =" nameDraw);
+ System.out.println("recherche image ou cadre ="+ nameDraw);
//recherche par le nom de l'objet draw:name par défaut
if(nod2Student!=null) nodStudent = a.retourneFirstNodeByNameAttributValueNetTexte(nod2Student, nameNode, "draw:name", nameDraw);
if(nod1Student!=null) if(nodStudent==null) nodStudent = a.retourneFirstNodeByNameAttributValueNetTexte(nod1Student, nameNode, "draw:name", nameDraw);
@@ -478,7 +478,9 @@ public class rechercherUnNodeStudent {
}
/**
- * Recherche le node par son nom. Retourne le premier node qui correspond au nom du node.
+ * Recherche le node par son nom.
+ * Retourne le premier node qui correspond au nom du node.
+ * Sauf pour les nodes (draw:frame, ...)
* @param nameNode
* @param nodSujet
* @param nod0Student
@@ -489,10 +491,10 @@ public class rechercherUnNodeStudent {
*/
private static node findByNameNode(String nameNode, node nodSujet,node nod0Student, node nod1Student, node nod2Student, Run a) {
node nodStudent = null;
+ if(nodSujet.getNomElt().equals("draw:frame")) return null;
if(nod2Student!=null) if(nod2Student.retourneEnfantsByNameExist(nameNode)) nodStudent = nod2Student.retourneFirstEnfantsByName(nameNode);
if(nod1Student!=null) if(nodStudent==null) if(nod1Student.retourneEnfantsByNameExist(nameNode)) nodStudent = nod1Student.retourneFirstEnfantsByName(nameNode);
if(nod0Student!=null) if(nodStudent==null) if(nod0Student.retourneEnfantsByNameExist(nameNode)) nodStudent = nod0Student.retourneFirstEnfantsByName(nameNode);
-
return nodStudent;
}
@@ -518,6 +520,7 @@ public class rechercherUnNodeStudent {
/**
* Recherche le node par le contenu simple get(0).
+ * Le nom du node doit contenir "text" ou "style:" pour qu'il soit pris en compte.
* @param nameNode
* @param nodSujet
* @param nod0Student
@@ -528,12 +531,13 @@ public class rechercherUnNodeStudent {
*/
private static node findByContentZero(String nameNode, node nodSujet,node nod0Student, node nod1Student, node nod2Student, Run a) {
node nodStudent = null;
- if(!nodSujet.getContenu().isEmpty()) {
- if(nod2Student!=null) nodStudent = a.retourneFirstNodeByNameContent(nod2Student, nameNode, nodSujet.getContenu().get(0));
- if(nod1Student!=null) if(nodStudent==null) nodStudent = a.retourneFirstNodeByNameContent(nod1Student, nameNode, nodSujet.getContenu().get(0));
- if(nod0Student!=null) if(nodStudent==null) nodStudent = a.retourneFirstNodeByNameContent(nod0Student, nameNode, nodSujet.getContenu().get(0));
+ if(nodSujet.getNomElt().contains("text")||nodSujet.getNomElt().contains("style:")) {
+ if(!nodSujet.getContenu().isEmpty()) {
+ if(nod2Student!=null) nodStudent = a.retourneFirstNodeByNameContent(nod2Student, nameNode, nodSujet.getContenu().get(0));
+ if(nod1Student!=null) if(nodStudent==null) nodStudent = a.retourneFirstNodeByNameContent(nod1Student, nameNode, nodSujet.getContenu().get(0));
+ if(nod0Student!=null) if(nodStudent==null) nodStudent = a.retourneFirstNodeByNameContent(nod0Student, nameNode, nodSujet.getContenu().get(0));
+ }
}
-
return nodStudent;
}
diff --git a/src/app/MyTreeCellRenderer.java b/src/app/MyTreeCellRenderer.java
new file mode 100644
index 0000000..eea5c7c
--- /dev/null
+++ b/src/app/MyTreeCellRenderer.java
@@ -0,0 +1,39 @@
+package app;
+
+import java.awt.Color;
+import java.awt.Component;
+
+import javax.swing.JTree;
+import javax.swing.tree.DefaultMutableTreeNode;
+import javax.swing.tree.DefaultTreeCellRenderer;
+
+import cXML.node;
+
+public class MyTreeCellRenderer extends DefaultTreeCellRenderer {
+
+ /**
+ *
+ */
+ private static final long serialVersionUID = 1L;
+
+ @Override
+ public Component getTreeCellRendererComponent(JTree tree, Object value,
+ boolean sel, boolean exp, boolean leaf, int row, boolean hasFocus) {
+ super.getTreeCellRendererComponent(tree, value, sel, exp, leaf, row, hasFocus);
+
+ // Assuming you have a tree of Strings
+ node nod = (node) ((DefaultMutableTreeNode) value).getUserObject();
+
+ // If the node is a leaf and ends with "xxx"
+// if (leaf && nod.endsWith("xxx")) {
+// // Paint the node in blue
+// setForeground(new Color(13, 57 ,115));
+// }
+
+ if(nod.getAttributs().get("evaluer")!=null) {
+ if(nod.getAttributs().get("evaluer").equals("true")) setForeground(new Color(0, 240 ,50));
+ }
+
+ return this;
+ }
+}
diff --git a/src/app/afficheText.java b/src/app/afficheText.java
index e8b3f03..9811576 100644
--- a/src/app/afficheText.java
+++ b/src/app/afficheText.java
@@ -24,6 +24,7 @@ public class afficheText extends JEditorPane {
private static final long serialVersionUID = 1L;
+
public void refreshAffichage(node nod) {
if(nod!=null) {
@@ -42,16 +43,19 @@ public class afficheText extends JEditorPane {
String imagereRecherchePlusProcheVoisin= "";
String imagerePremierAuteur= "";
String imagereDernierEditeur= "";
+ String imageAtraversAnalyseStyle= "";
StringBuilder sb = new StringBuilder();
sb.append(baliseStyle.balise());
- sb.append("
Parent = " + nodeParent.getNomElt() + "
");
+ if(nodeParent!=null) sb.append("
Parent = " + nodeParent.getNomElt() + "
");
sb.append("
Nom du node : " + nod.getNomElt() + "
");
- //sous titre pour identifier les éléments
+ //*********************************************
+ //** sous titre pour identifier les éléments **
+ //*********************************************
if(nod.getNomElt().equals("style:style")) {
sb.append("
Nom du style : " + nod.getAttributs().get("style:name")+ "
");
}
@@ -59,7 +63,11 @@ public class afficheText extends JEditorPane {
sb.append("
Nom du frame : " + outils.withoutCodeAndPointPourRechercheContenuExact(nod.getAttributs().get("draw:name"))+ "
Numero absolue de la page : " + outils.withoutCodeAndPointPourRechercheContenuExact(nod.getAttributs().get("numeroabsolue"))
@@ -67,7 +75,9 @@ public class afficheText extends JEditorPane {
}
-
+ //********************************************************
+ //** Le logo d'analyseWriter lorsque le node est évalué **
+ //********************************************************
if(nod.getAttributs().get("evaluer")!=null) if(nod.getAttributs().get("evaluer").equalsIgnoreCase("true")) {
sb.append("
Ce node est évalué.
");
}
@@ -107,38 +117,41 @@ public class afficheText extends JEditorPane {
}
if(Lesattributsdunode.get(i).equals("titre")||Lesattributsdunode.get(i).equals("titre1")||Lesattributsdunode.get(i).equals("titre2")||Lesattributsdunode.get(i).equals("titre3")) {
if(nod.getAttributs().get(Lesattributsdunode.get(i)).length()>0) {
- sb.append("