summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Peter Christen <mc@yacy.net>2025-09-21 23:26:52 +0200
committerMichael Peter Christen <mc@yacy.net>2025-09-21 23:26:52 +0200
commit534a7174d1ce2d01243678e796416557bd1b4253 (patch)
treeab42f676741b3f0c61d96945ef3c02144d7b3199
parent24fd128ddee063bac8dd20905f6b94a369fa7ca3 (diff)
enlarged web structure image
Only the headline gets a larger font, the network nodes stay with a 5-pixel font. However, the overall size had been increased by 20%
-rw-r--r--htroot/Crawler_p.html2
-rw-r--r--source/net/yacy/htroot/WebStructurePicture_p.java18
2 files changed, 10 insertions, 10 deletions
diff --git a/htroot/Crawler_p.html b/htroot/Crawler_p.html
index 3b328a996..4a4adc8f6 100644
--- a/htroot/Crawler_p.html
+++ b/htroot/Crawler_p.html
@@ -298,7 +298,7 @@ window.setInterval("setTableSize()", 1000);
<form style="float:right;" action="Crawler_p.html"><input type="submit" name="hidewebstructuregraph" class="btn btn-default btn-xs" value="hide graphic"/><form>
</td></tr></table>
<script type="text/javascript">
- imagestub = "WebStructurePicture_p.png?host=#[hosts]#&depth=4&width=1024&height=512&nodes=600&time=1000&colortext=888888&colorback=FFFFFF&colordot0=1111BB&colordota=11BB11&colorline=222222&colorlineend=333333";
+ imagestub = "WebStructurePicture_p.png?host=#[hosts]#&depth=4&width=1280&height=720&nodes=600&time=1000&colortext=888888&colorback=FFFFFF&colordot0=1111BB&colordota=11BB11&colorline=222222&colorlineend=333333";
idx = 0;
setTimeout("doanimation(500)", 500);
function doanimation(nexttimeout) {
diff --git a/source/net/yacy/htroot/WebStructurePicture_p.java b/source/net/yacy/htroot/WebStructurePicture_p.java
index fbe22efba..c7072f2e1 100644
--- a/source/net/yacy/htroot/WebStructurePicture_p.java
+++ b/source/net/yacy/htroot/WebStructurePicture_p.java
@@ -59,8 +59,8 @@ public class WebStructurePicture_p {
String color_line = "222222";
String color_lineend = "333333";
- int width = 1024;
- int height = 576;
+ int width = 1280;
+ int height = 720;
int depth = 3;
int nodes = 300; // maximum number of host nodes that are painted
int bf = 12; // maximum number of branches around nodes; less nodes makes the graphic look more structured
@@ -69,10 +69,10 @@ public class WebStructurePicture_p {
int cyc = 0;
if (post != null) {
- width = post.getInt("width", 1024);
+ width = post.getInt("width", 1280);
if (width < 32 ) width = 32;
if (width > 10000) width = 10000;
- height = post.getInt("height", 576);
+ height = post.getInt("height", 720);
if (height < 24) height = 24;
if (height > 10000) height = 10000;
depth = post.getInt("depth", 3);
@@ -104,8 +104,8 @@ public class WebStructurePicture_p {
// probably no information available
final RasterPlotter.DrawMode drawMode = (RasterPlotter.darkColor(color_back)) ? RasterPlotter.DrawMode.MODE_ADD : RasterPlotter.DrawMode.MODE_SUB;
graphPicture = new RasterPlotter(width, height, drawMode, color_back);
- PrintTool.print5(graphPicture, width / 2, height / 2, 0, "NO WEB STRUCTURE DATA AVAILABLE.", 0, 100);
- PrintTool.print5(graphPicture, width / 2, height / 2 + 16, 0, "START A WEB CRAWL TO OBTAIN STRUCTURE DATA.", 0, 100);
+ PrintTool.print7(graphPicture, width / 2, height / 2, 0, "NO WEB STRUCTURE DATA AVAILABLE.", 0, 100);
+ PrintTool.print7(graphPicture, width / 2, height / 2 + 20, 0, "START A WEB CRAWL TO OBTAIN STRUCTURE DATA.", 0, 100);
} else {
// recursively find domains, up to a specific depth
GraphPlotter graph = new GraphPlotter();
@@ -134,9 +134,9 @@ public class WebStructurePicture_p {
}
// print headline
graphPicture.setColor(Long.parseLong(color_text, 16));
- PrintTool.print5(graphPicture, 2, 8, 0, "YACY WEB-STRUCTURE ANALYSIS", -1, 100);
- if (hosts != null) PrintTool.print5(graphPicture, 2, 16, 0, "LINK ENVIRONMENT OF DOMAIN " + hosts.toUpperCase(), -1, 80);
- PrintTool.print5(graphPicture, width - 2, 8, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);
+ PrintTool.print7(graphPicture, 2, 10, 0, "YACY WEB-STRUCTURE ANALYSIS", -1, 100);
+ if (hosts != null) PrintTool.print7(graphPicture, 2, 20, 0, "LINK ENVIRONMENT OF DOMAIN " + hosts.toUpperCase(), -1, 80);
+ PrintTool.print7(graphPicture, width - 2, 10, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);
return graphPicture;
}