updated some grafics at new terminal_p

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4774 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 17 years ago
parent 58830e9b28
commit 719f5defb1

@ -13,8 +13,8 @@ import processing.net.*;
final float NODE_SIZE = 6;
final float EDGE_LENGTH = 50;
final float EDGE_STRENGTH = 0.01;
final float SPACER_STRENGTH = 10;
final float EDGE_STRENGTH = 0.001;
final float SPACER_STRENGTH = 500;
ParticleSystem physics;
Smoother3D centroid;
@ -162,6 +162,22 @@ void keyPressed() {
return;
}
if ( key == 'd' ) {
HashSet hs = new HashSet();
for (int i = 0; i < physics.numberOfParticles(); ++i ) {
hs.add(physics.getParticle(i));
}
for (int i = 0; i < physics.numberOfSprings(); ++i ) {
hs.remove(physics.getSpring(i).getOneEnd());
hs.remove(physics.getSpring(i).getTheOtherEnd());
}
Iterator i = hs.iterator();
while (i.hasNext()) {
((Particle) i.next()).kill();
}
return;
}
if ( key == ' ' ) {
Particle p = physics.makeParticle();
addRelation(p, physics.getParticle( (int) random( 0, physics.numberOfParticles()-1) ));

@ -7,7 +7,7 @@
<meta name="description" content="YaCy Peer Live Monitoring" />
<meta name="keywords" content="open,source,search,engine,monitor" />
<link rel="stylesheet" type="text/css" href="/env/terminal.css" />
<script type="text/javascript" src="/js/highslide/highslide.js"></script>
<script type="text/javascript">
var loaderBanner = null;
var loaderPerformance = null;
@ -21,7 +21,7 @@ function loadPerformance() {
document.images[1].src = "/PerformanceGraph.png?cnt=" + cnt++;
}
function loadNetwork() {
document.images[3].src = "/NetworkPicture.png?width=660&height=360&bgcolor=FFFFFF&cnt=" + cnt++;
document.images[3].src = "/NetworkPicture.png?width=660&height=360&bgcolor=000000&cnt=" + cnt++;
}
function init() {
@ -63,12 +63,12 @@ function init() {
<div id="right"> <!-- start right side -->
<h1>Resource Monitor</h1>
<img src="/PerformanceGraph.png" width="330" height="120" name="graph" alt="PerformanceGraph"/>
<img src="/WebStructurePicture_p.png?host=auto&amp;depth=2&amp;width=660&amp;height=240&amp;nodes=100&amp;time=1000" width="330" height="120" alt="WebStructurePicture"/>
<a href="/PerformanceGraph.png" onclick="return hs.expand(this)"><img src="/PerformanceGraph.png" width="330" height="120" name="graph" alt="PerformanceGraph"/></a>
<a href="/WebStructurePicture_p.png?host=auto&depth=2&width=660&height=240&nodes=100&time=1000" onclick="return hs.expand(this)"><img src="/WebStructurePicture_p.png?host=auto&depth=2&width=660&height=240&nodes=100&time=1000" width="330" height="120" alt="WebStructurePicture"/></a>
<h1>Network Monitor</h1>
<div style="text-align:left;margin:0;padding:0;">
<img src="/NetworkPicture.png?width=660&amp;height=360&amp;bgcolor=FFFFFF" width="330" height="180" alt="The yacy Network" />
<a href="/NetworkPicture.png?width=660&height=360&bgcolor=000000" onclick="return hs.expand(this)"><img src="/NetworkPicture.png?width=660&height=360&bgcolor=000000" width="330" height="180" alt="The yacy Network" /></a>
<embed src="http://maps.amung.us/flash/flashsrv.php?k=qp3j5gox&type=emb.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="transparent" allowScriptAccess="always" allowNetworking="all" type="application/x-shockwave-flash" flashvars="wausitehash=qp3j5gox&map=night&pin=star-orange&link=no" width="330" />
</div>

@ -196,7 +196,7 @@ public class plasmaGrafics {
if (seedDB == null) return; // no other peers known
networkPicture = new ymageMatrix(width, height, ymageMatrix.MODE_SUB, bgcolor);
networkPicture = new ymageMatrix(width, height, (bgcolor.equals("000000")) ? ymageMatrix.MODE_ADD : ymageMatrix.MODE_SUB, bgcolor);
// draw network circle
networkPicture.setColor(COL_DHTCIRCLE);

Loading…
Cancel
Save