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.
pull/1/head
Michael Peter Christen 12 years ago
parent 58d85b5b80
commit b528448332

@ -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">

@ -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;

Loading…
Cancel
Save