Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

enlarge network graph circle according to image height and reduce the image height in the Network servlet. Overall, the image is now larger but takes less space on the web page.

Michael Peter Christenb52844833248
diff --git a/htroot/Network.html b/htroot/Network.html
index fb01d43cc..b71ecace8 100644
--- a/htroot/Network.html
+++ b/htroot/Network.html
@@ -11,7 +11,7 @@
<script type="text/javascript">
<!--
- imagestub = "NetworkPicture.png?width=1024&height=1024&bgcolor=FFFFFF&ct=9000&coronaangle=";
+ imagestub = "NetworkPicture.png?width=1024&height=720&bgcolor=FFFFFF&ct=9000&coronaangle=";
imageanimindex = 0;
imageloadindex = 0;
imagecycles = 0;
@@ -23,7 +23,7 @@
for (j = 0; j < 6; j++) initanimationphase(j, handle);
}
function initanimationphase(phase, handle) {
- imagearray[phase] = new Image(1024, 1024);
+ imagearray[phase] = new Image(1024, 720);
angle = phase * 60;
imagearray[phase].src = imagestub + angle + "&handle=" + handle;
}
@@ -232,7 +232,7 @@ To see a list of all APIs, please visit the <a href="http://www.yacy-websuche.de
<div class="left">
<p>
- <a href="NetworkPicture.png?width=1024&amp;height=1024&amp;bgcolor=FFFFFF"><img id="NetworkPicture" src="NetworkPicture.png?width=1024&amp;height=1024&amp;bgcolor=FFFFFF&amp;coronaangle=0" alt="The YaCy Network" width="1024" height="1024" /></a>
+ <a href="NetworkPicture.png?width=1024&amp;height=720&amp;bgcolor=FFFFFF"><img id="NetworkPicture" src="NetworkPicture.png?width=1024&amp;height=720&amp;bgcolor=FFFFFF&amp;coronaangle=0" alt="The YaCy Network" width="1024" height="720" /></a>
</p>
</div>
<div class="left">
diff --git a/source/net/yacy/peers/graphics/NetworkGraph.java b/source/net/yacy/peers/graphics/NetworkGraph.java
index dde836214..a6c35ffdc 100644
--- a/source/net/yacy/peers/graphics/NetworkGraph.java
+++ b/source/net/yacy/peers/graphics/NetworkGraph.java
@@ -186,7 +186,7 @@ public class NetworkGraph {
final RasterPlotter networkPicture = new RasterPlotter(width, height, drawMode, color_back);
if (seedDB == null) return networkPicture; // no other peers known
- final int maxradius = Math.min(width, height) / 2;
+ final int maxradius = Math.min(width / 2, height * 3 / 5);
final int innerradius = maxradius * 4 / 10;
final int outerradius = maxradius - 20;