Skip to content

Commit

Permalink
updated some grafics at new terminal_p
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4774 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed May 7, 2008
1 parent 58830e9 commit 719f5de
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
20 changes: 18 additions & 2 deletions htroot/processing/domaingraph/domaingraph.pde
Expand Up @@ -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;
Expand Down Expand Up @@ -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) ));
Expand Down
10 changes: 5 additions & 5 deletions htroot/terminal_p.html
Expand Up @@ -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;
Expand All @@ -21,7 +21,7 @@
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() {
Expand Down Expand Up @@ -63,12 +63,12 @@
<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>

Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/plasma/plasmaGrafics.java
Expand Up @@ -196,7 +196,7 @@ private static void drawNetworkPicture(yacySeedDB seedDB, int width, int height,

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);
Expand Down

0 comments on commit 719f5de

Please sign in to comment.