Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move sample tests in a separate file.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 9 Oct 2014 14:03:46 +0000 (16:03 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 9 Oct 2014 14:04:22 +0000 (16:04 +0200)
DrawingWindow.java
Makefile

index 3d35c96..ba3d3ed 100644 (file)
@@ -28,7 +28,7 @@ import java.lang.reflect.*;
  * <a href="Exemple3.java">Exemple3.java</a>
  *
  * @author Arnaud Giersch &lt;arnaud.giersch@univ-fcomte.fr&gt;
  * <a href="Exemple3.java">Exemple3.java</a>
  *
  * @author Arnaud Giersch &lt;arnaud.giersch@univ-fcomte.fr&gt;
- * @version Thu, 09 Oct 2014 15:27:09 +0200
+ * @version Thu Oct 9 16:03:46 2014 +0200
  */
 public class DrawingWindow {
 
  */
 public class DrawingWindow {
 
@@ -490,30 +490,4 @@ public class DrawingWindow {
         public void keyTyped(KeyEvent e) { }
 
     }
         public void keyTyped(KeyEvent e) { }
 
     }
-
-    // Sample tests
-    public static void main(String[] args) {
-        DrawingWindow w = new DrawingWindow("Test!", 400, 400);
-
-        w.setColor("green");
-        for (int i = 0; i < 12; i++) {
-            int p = 10 * i + 10;
-            w.drawLine(p, 0, p, 175);
-            w.drawLine(p + i, 0, p + i, 175);
-        }
-
-        w.setColor("black");
-        for (int i = 0; i < 12; i++) {
-            int p = 10 * i + 10;
-
-            w.drawCircle(p, 25, i);
-            w.fillCircle(p, 50, i);
-
-            w.drawRect(p, 75, p + i, 75 + i);
-            w.fillRect(p, 100, p + i, 100 + i);
-
-            w.drawTriangle(p, 125, p + i, 125 + i/2, p, 125 + i);
-            w.fillTriangle(p, 150, p + i, 150 + i/2, p, 150 + i);
-        }
-    }
 }
 }
index 71c49e3..e405622 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,15 +10,18 @@ EXAMPLES_CLASS = $(EXAMPLES:%.java=%.class)
 
 all: html/index.html
        $(MAKE) -f ../Makefile.generic $(SRC_CLASS) $(EXAMPLES_CLASS)
 
 all: html/index.html
        $(MAKE) -f ../Makefile.generic $(SRC_CLASS) $(EXAMPLES_CLASS)
+       $(MAKE) -f ../Makefile.generic Test.class
 
 html/index.html: $(SRC)
        $(RM) -r html
 
 html/index.html: $(SRC)
        $(RM) -r html
-       javadoc -author -version -notree -nodeprecated -nohelp \
-               -encoding utf-8 -docencoding utf-8 -charset utf-8 \
+       javadoc -locale fr_FR -encoding utf-8 -docencoding utf-8 -charset utf-8 \
+               -quiet -notree -nodeprecated -nohelp \
+               -author -version -public \
                -d html/ $(SRC)
 
 clean:
        $(RM) DrawingWindow*.class
                -d html/ $(SRC)
 
 clean:
        $(RM) DrawingWindow*.class
+       $(RM) Test.class
        $(RM) $(EXAMPLES_CLASS)
        $(RM) -r html/
 
        $(RM) $(EXAMPLES_CLASS)
        $(RM) -r html/