Update of /cvsroot/freenet/freenet/src/freenet/node/rt/testapplication
In directory sc8-pr-cvs1:/tmp/cvs-serv3582/src/freenet/node/rt/testapplication

Modified Files:
        NGRTestApplication.java 
Log Message:
Slightly better color on the graphs. Better naming on nodes added by the user.

Index: NGRTestApplication.java
===================================================================
RCS file: 
/cvsroot/freenet/freenet/src/freenet/node/rt/testapplication/NGRTestApplication.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -w -r1.1 -r1.2
--- NGRTestApplication.java     26 Nov 2003 13:23:16 -0000      1.1
+++ NGRTestApplication.java     26 Nov 2003 13:41:26 -0000      1.2
@@ -96,7 +96,8 @@
        NodeRefListModel nodeRefsListModel= new NodeRefListModel(); 
        RandomSource randomsource = new Yarrow();
        File routingDir;
-       boolean bAppInitialized = false;
+       boolean bAppInitialized = false; //Will be set to true iff the application is 
completely started
+       int nextDummyAddressNr = 0;
                                
        public NGRTestApplication() {
                super("NGRTest");
@@ -349,7 +350,7 @@
                                        while (i.hasNext()) {
                                                Identity id = ((NodeReference) 
i.next()).getIdentity();
                                                NodeEstimator est = (NodeEstimator) 
ngrt.getEstimator(id);
-                                               
est.getHTMLReportingTool().drawCombinedGraph(img, 0, new 
freenet.support.graph.Color(0, 255, 0), MaxMin);
+                                               
est.getHTMLReportingTool().drawCombinedGraph(img, 0, new 
freenet.support.graph.Color(0, 150, 0), MaxMin);
                                        }
                                        repaint();
                                }
@@ -383,7 +384,7 @@
                        rightClickMenu.add(j);
                }
                protected void regenerate() {
-                       freenet.support.graph.Color col = new 
freenet.support.graph.Color(0, 255, 0);
+                       freenet.support.graph.Color col = new 
freenet.support.graph.Color(0, 150, 0);
                        NodeEstimator.lowestHighestPair newMaxMin = new 
NodeEstimator.lowestHighestPair();
                        img = new Bitmap(getWidth(), getHeight());
                        Iterator i = selectedNodeRefs.iterator();
@@ -599,7 +600,7 @@
                DSAIdentity id = new DSAIdentity(Global.DSAgroupC,auth);
                Address[] a= new Address[1];
                try {
-                       a[0] = (new TCP(100, false)).getAddress("<dummy>:0");
+                       a[0] = (new TCP(100, false)).getAddress("<dummy 
#"+String.valueOf(nextDummyAddressNr++)+">:0");
                } catch (BadAddressException e) {
                        System.err.print("Should not happen!");
                        e.printStackTrace();

_______________________________________________
cvs mailing list
[EMAIL PROTECTED]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to