Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
refactoring PrintTool
Michael Peter Christenb16cc99d121c
diff --git a/source/net/yacy/htroot/AccessPicture_p.java b/source/net/yacy/htroot/AccessPicture_p.javaindex b8be21567..397485dac 100644--- a/source/net/yacy/htroot/AccessPicture_p.java+++ b/source/net/yacy/htroot/AccessPicture_p.java@@ -194,8 +194,8 @@ public class AccessPicture_p {// print headlinepicture.setColor(color_text_l);- PrintTool.print(picture, 2, 6, 0, "YACY NODE ACCESS GRID", -1, 100);- PrintTool.print(picture, width - 2, 6, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);+ PrintTool.print5(picture, 2, 6, 0, "YACY NODE ACCESS GRID", -1, 100);+ PrintTool.print5(picture, width - 2, 6, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);// print legendpicture.setColor(color_grid_l);diff --git a/source/net/yacy/htroot/WebStructurePicture_p.java b/source/net/yacy/htroot/WebStructurePicture_p.javaindex 8aeac3c27..fbe22efba 100644--- a/source/net/yacy/htroot/WebStructurePicture_p.java+++ b/source/net/yacy/htroot/WebStructurePicture_p.java@@ -104,8 +104,8 @@ public class WebStructurePicture_p {// probably no information availablefinal RasterPlotter.DrawMode drawMode = (RasterPlotter.darkColor(color_back)) ? RasterPlotter.DrawMode.MODE_ADD : RasterPlotter.DrawMode.MODE_SUB;graphPicture = new RasterPlotter(width, height, drawMode, color_back);- PrintTool.print(graphPicture, width / 2, height / 2, 0, "NO WEB STRUCTURE DATA AVAILABLE.", 0, 100);- PrintTool.print(graphPicture, width / 2, height / 2 + 16, 0, "START A WEB CRAWL TO OBTAIN STRUCTURE DATA.", 0, 100);+ 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);} else {// recursively find domains, up to a specific depthGraphPlotter graph = new GraphPlotter();@@ -134,9 +134,9 @@ public class WebStructurePicture_p {}// print headlinegraphPicture.setColor(Long.parseLong(color_text, 16));- PrintTool.print(graphPicture, 2, 8, 0, "YACY WEB-STRUCTURE ANALYSIS", -1, 100);- if (hosts != null) PrintTool.print(graphPicture, 2, 16, 0, "LINK ENVIRONMENT OF DOMAIN " + hosts.toUpperCase(), -1, 80);- PrintTool.print(graphPicture, width - 2, 8, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);+ 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);return graphPicture;}diff --git a/source/net/yacy/htroot/imagetest.java b/source/net/yacy/htroot/imagetest.javaindex 89f82c75e..73aeb261a 100644--- a/source/net/yacy/htroot/imagetest.java+++ b/source/net/yacy/htroot/imagetest.java@@ -38,8 +38,8 @@ public class imagetest {final RasterPlotter img = new RasterPlotter(800, 600, RasterPlotter.DrawMode.MODE_SUB, "FFFFFF");img.setColor(RasterPlotter.GREY);- for (int y = 0; y < 600; y = y + 50) PrintTool.print(img, 0, 6 + y, 0, Integer.toString(y), -1, 100);- for (int x = 0; x < 800; x = x + 50) PrintTool.print(img, x, 6 , 0, Integer.toString(x), -1, 100);+ for (int y = 0; y < 600; y = y + 50) PrintTool.print5(img, 0, 6 + y, 0, Integer.toString(y), -1, 100);+ for (int x = 0; x < 800; x = x + 50) PrintTool.print5(img, x, 6 , 0, Integer.toString(x), -1, 100);img.setColor(RasterPlotter.RED);img.dot(550, 110, 90, true, 100);img.setColor(RasterPlotter.GREEN);@@ -52,9 +52,9 @@ public class imagetest {img.arc(220, 110, 50, 90, 30, 110);img.arc(210, 120, 50, 90, 30, 110);img.setColor(RasterPlotter.GREY);- PrintTool.print(img, 50, 110, 0, "BROADCAST MESSAGE #772: NODE %882 GREY abcefghijklmnopqrstuvwxyz", -1, 100);+ PrintTool.print5(img, 50, 110, 0, "BROADCAST MESSAGE #772: NODE %882 GREY abcefghijklmnopqrstuvwxyz", -1, 100);img.setColor(RasterPlotter.GREEN);- PrintTool.print(img, 50, 120, 0, "BROADCAST MESSAGE #772: NODE %882 GREEN abcefghijklmnopqrstuvwxyz", -1, 100);+ PrintTool.print5(img, 50, 120, 0, "BROADCAST MESSAGE #772: NODE %882 GREEN abcefghijklmnopqrstuvwxyz", -1, 100);for (long i = 0; i < 256; i++) {img.setColor(i);img.dot(10 + 14 * (int) (i / 16), 200 + 14 * (int) (i % 16), 6, true, 100);@@ -81,7 +81,7 @@ public class imagetest {for (byte c = (byte) 'A'; c <= 'Z'; c++) {angle = (c - (byte) 'A') * 360 / ((byte) 'Z' - (byte) 'A');img.arcLine(550, 400, 81, 100, angle, true, null, null, -1, -1, -1, false);- PrintTool.arcPrint(img, 550, 400, 100, angle, "ANGLE" + angle + ":" + (char) c, 100);+ PrintTool.arcPrint5(img, 550, 400, 100, angle, "ANGLE" + angle + ":" + (char) c, 100);}return img;diff --git a/source/net/yacy/htroot/osm.java b/source/net/yacy/htroot/osm.javaindex d827bbeb7..4fb3d9d22 100644--- a/source/net/yacy/htroot/osm.java+++ b/source/net/yacy/htroot/osm.java@@ -60,7 +60,7 @@ public class osm {* set the lowercase letters do not look good, so we use uppercase only.* The (C) symbol is not available in our font, so we use the letters (C) instead.*/- PrintTool.print(map, map.getWidth() - 6, map.getHeight() - 6, 0, "(C) OPENSTREETMAP CONTRIBUTORS", 1, 80);+ PrintTool.print5(map, map.getWidth() - 6, map.getHeight() - 6, 0, "(C) OPENSTREETMAP CONTRIBUTORS", 1, 80);return new EncodedImage(map, header.get(HeaderFramework.CONNECTION_PROP_EXT, null), true);}diff --git a/source/net/yacy/peers/graphics/Banner.java b/source/net/yacy/peers/graphics/Banner.javaindex 912f511a7..52c81fd66 100644--- a/source/net/yacy/peers/graphics/Banner.java+++ b/source/net/yacy/peers/graphics/Banner.java@@ -93,17 +93,17 @@ public final class Banner {// draw descriptionbannerPicture.setColor(data.getTextcolor());- PrintTool.print(bannerPicture, 100, 12, 0, PEER_NAME + addBlanks(data.getName(), PEER_NAME.length()), -1, 100);- PrintTool.print(bannerPicture, 100, 22, 0, DOCUMENTS + addBlanksAndDots(data.getLinks(), DOCUMENTS.length()), -1, 80);- PrintTool.print(bannerPicture, 100, 32, 0, DHT_WORDS + addBlanksAndDots(data.getWords(), DHT_WORDS.length()), -1, 80);- PrintTool.print(bannerPicture, 100, 42, 0, TYPE + addBlanks(data.getType(), TYPE.length()), -1, 80);- PrintTool.print(bannerPicture, 100, 52, 0, SPEED + addBlanks(data.getPpm() + PAGES_MINUTE, SPEED.length()), -1, 80);-- PrintTool.print(bannerPicture, 290, 12, 0, NETWORK + addBlanks(data.getNetwork() + " [" + data.getPeers() + "]", NETWORK.length()), -1, 80);- PrintTool.print(bannerPicture, 290, 22, 0, LINKS + addBlanksAndDots(data.getNlinks(), LINKS.length()), -1, 80);- PrintTool.print(bannerPicture, 290, 32, 0, WORDS + addBlanksAndDots(data.getNwords(), WORDS.length()), -1, 80);- PrintTool.print(bannerPicture, 290, 42, 0, QUERIES + addBlanks(formatQpm(data.getNqph()) + QUERIES_HOUR, QUERIES.length()), -1, 80);- PrintTool.print(bannerPicture, 290, 52, 0, SPEED + addBlanks(data.getNppm() + PAGES_MINUTE, SPEED.length()), -1, 80);+ PrintTool.print5(bannerPicture, 100, 12, 0, PEER_NAME + addBlanks(data.getName(), PEER_NAME.length()), -1, 100);+ PrintTool.print5(bannerPicture, 100, 22, 0, DOCUMENTS + addBlanksAndDots(data.getLinks(), DOCUMENTS.length()), -1, 80);+ PrintTool.print5(bannerPicture, 100, 32, 0, DHT_WORDS + addBlanksAndDots(data.getWords(), DHT_WORDS.length()), -1, 80);+ PrintTool.print5(bannerPicture, 100, 42, 0, TYPE + addBlanks(data.getType(), TYPE.length()), -1, 80);+ PrintTool.print5(bannerPicture, 100, 52, 0, SPEED + addBlanks(data.getPpm() + PAGES_MINUTE, SPEED.length()), -1, 80);++ PrintTool.print5(bannerPicture, 290, 12, 0, NETWORK + addBlanks(data.getNetwork() + " [" + data.getPeers() + "]", NETWORK.length()), -1, 80);+ PrintTool.print5(bannerPicture, 290, 22, 0, LINKS + addBlanksAndDots(data.getNlinks(), LINKS.length()), -1, 80);+ PrintTool.print5(bannerPicture, 290, 32, 0, WORDS + addBlanksAndDots(data.getNwords(), WORDS.length()), -1, 80);+ PrintTool.print5(bannerPicture, 290, 42, 0, QUERIES + addBlanks(formatQpm(data.getNqph()) + QUERIES_HOUR, QUERIES.length()), -1, 80);+ PrintTool.print5(bannerPicture, 290, 52, 0, SPEED + addBlanks(data.getNppm() + PAGES_MINUTE, SPEED.length()), -1, 80);final int height = data.getHeight();final int width = data.getWidth();diff --git a/source/net/yacy/peers/graphics/NetworkGraph.java b/source/net/yacy/peers/graphics/NetworkGraph.javaindex 87bcb5216..25c08639a 100644--- a/source/net/yacy/peers/graphics/NetworkGraph.java+++ b/source/net/yacy/peers/graphics/NetworkGraph.java@@ -289,10 +289,10 @@ public class NetworkGraph {// draw descriptionnetworkPicture.setColor(COL_HEADLINE);- PrintTool.print(networkPicture, 2, 6, 0, "YACY NETWORK '" + networkName.toUpperCase() + "'", -1, 100);- PrintTool.print(networkPicture, 2, 14, 0, networkTitle.toUpperCase(), -1, 80);- PrintTool.print(networkPicture, width - 2, 6, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);- PrintTool.print(networkPicture, width - 2, 14, 0, "DRAWING OF " + totalCount + " SELECTED PEERS", 1, 80);+ PrintTool.print5(networkPicture, 2, 6, 0, "YACY NETWORK '" + networkName.toUpperCase() + "'", -1, 100);+ PrintTool.print5(networkPicture, 2, 14, 0, networkTitle.toUpperCase(), -1, 80);+ PrintTool.print5(networkPicture, width - 2, 6, 0, "SNAPSHOT FROM " + new Date().toString().toUpperCase(), 1, 80);+ PrintTool.print5(networkPicture, width - 2, 14, 0, "DRAWING OF " + totalCount + " SELECTED PEERS", 1, 80);// wait for draw termination//for (final Thread t: drawThreads) try { t.join(); } catch (final InterruptedException ee) {}@@ -357,7 +357,7 @@ public class NetworkGraph {this.img.arcLine(this.centerX, this.centerY, this.innerradius + 18, this.innerradius + linelength, angle, true, this.colorLine, 0x444444l, 12, this.coronaangle / 30, 0, true);// draw textthis.img.setColor(this.colorText);- PrintTool.arcPrint(this.img, this.centerX, this.centerY, this.innerradius + linelength, angle, name, 100);+ PrintTool.arcPrint5(this.img, this.centerX, this.centerY, this.innerradius + linelength, angle, name, 100);// draw corona around dot for crawling activityfinal int ppmx = Math.min(this.seed.getPPM() / 20, 10);diff --git a/source/net/yacy/peers/graphics/NetworkSkylineGraph.java b/source/net/yacy/peers/graphics/NetworkSkylineGraph.javaindex cc9def5bc..da017a53f 100644--- a/source/net/yacy/peers/graphics/NetworkSkylineGraph.java+++ b/source/net/yacy/peers/graphics/NetworkSkylineGraph.java@@ -195,11 +195,11 @@ public final class NetworkSkylineGraph {skyline.setColor(headlineColor);final String name = networkName == null ? "UNSPECIFIED" : networkName.toUpperCase();final String title = networkTitle == null ? "" : networkTitle.toUpperCase();- PrintTool.print(skyline, 2, 6, 0, "YACY SKYLINE '" + name + "'", -1, 100);- PrintTool.print(skyline, 2, 14, 0, title, -1, 80);- PrintTool.print(skyline, width - 2, 6, 0,+ PrintTool.print5(skyline, 2, 6, 0, "YACY SKYLINE '" + name + "'", -1, 100);+ PrintTool.print5(skyline, 2, 14, 0, title, -1, 80);+ PrintTool.print5(skyline, width - 2, 6, 0,"SNAPSHOT " + new Date().toString().toUpperCase(), 1, 80);- PrintTool.print(skyline, width - 2, 14, 0,+ PrintTool.print5(skyline, width - 2, 14, 0,"RENDERED " + totalCount + " PEERS", 1, 80);return skyline;diff --git a/source/net/yacy/visualization/Captcha.java b/source/net/yacy/visualization/Captcha.javaindex a01fd759d..0075b0b64 100644--- a/source/net/yacy/visualization/Captcha.java+++ b/source/net/yacy/visualization/Captcha.java@@ -53,7 +53,7 @@ public class Captcha extends RasterPlotter {for(int i=0;i<chars;i++){y = random.nextInt(height/2) + (height/4);setColor(((random.nextInt(128)+64)<<16) + ((random.nextInt(128)+64)<<8) + random.nextInt(128)+64);- PrintTool.print(this, widthPerChar*i+random.nextInt(widthPerChar/2) , y , 0, code.substring(i,i+1), -1, 100);+ PrintTool.print5(this, widthPerChar*i+random.nextInt(widthPerChar/2) , y , 0, code.substring(i,i+1), -1, 100);}//adding some noisediff --git a/source/net/yacy/visualization/ChartPlotter.java b/source/net/yacy/visualization/ChartPlotter.javaindex 603ac1987..f9544804c 100644--- a/source/net/yacy/visualization/ChartPlotter.java+++ b/source/net/yacy/visualization/ChartPlotter.java@@ -62,11 +62,11 @@ public class ChartPlotter extends RasterPlotter {//this.foregroundColor = foregroundColor;if (name != null) {if (foregroundColor != null) this.setColor(foregroundColor);- PrintTool.print(this, width / 2 - name.length() * 3, 6, 0, name, -1, 100);+ PrintTool.print5(this, width / 2 - name.length() * 3, 6, 0, name, -1, 100);}if (subline != null) {if (lightColor != null) this.setColor(lightColor);- PrintTool.print(this, width / 2 - subline.length() * 3, 14, 0, subline, -1, 100);+ PrintTool.print5(this, width / 2 - subline.length() * 3, 14, 0, subline, -1, 100);}}@@ -101,7 +101,7 @@ public class ChartPlotter extends RasterPlotter {final int y = (int)((long)(coord_y - this.offsets[dimension_y]) * (long)(this.pixels[dimension_y]) / (this.scales[dimension_y]));if (dotsize == 1) plot(this.leftborder + x, this.height - this.bottomborder - y, 100);else dot(this.leftborder + x, this.height - this.bottomborder - y, dotsize, true, 100);- if (anot != null) PrintTool.print(this, this.leftborder + x + dotsize + 2 + ((anotAngle == 315) ? -9 : 0), this.height - this.bottomborder - y + ((anotAngle == 315) ? -3 : 0), anotAngle, anot, (anotAngle == 0) ? (anot.length() * 6 + x > this.width ? 1 : -1) : ((anotAngle == 315) ? 1 : 0), 100);+ if (anot != null) PrintTool.print5(this, this.leftborder + x + dotsize + 2 + ((anotAngle == 315) ? -9 : 0), this.height - this.bottomborder - y + ((anotAngle == 315) ? -3 : 0), anotAngle, anot, (anotAngle == 0) ? (anot.length() * 6 + x > this.width ? 1 : -1) : ((anotAngle == 315) ? 1 : 0), 100);}public void chartLine(final int dimension_x, final int dimension_y, final float coord_x1, final int coord_y1, final float coord_x2, final int coord_y2) {@@ -133,12 +133,12 @@ public class ChartPlotter extends RasterPlotter {}setColor(colorNaming);line(x, y - 3, x, y + 3, 100);- PrintTool.print(this, x, (top) ? y - 3 : y + 9, 0, Integer.toString(s), -1, 80);+ PrintTool.print5(this, x, (top) ? y - 3 : y + 9, 0, Integer.toString(s), -1, 80);x += pixelperscale;s += scale;}setColor(colorNaming);- PrintTool.print(this, this.width - this.rightborder, (top) ? y - 9 : y + 15, 0, name, 1, 80);+ PrintTool.print5(this, this.width - this.rightborder, (top) ? y - 9 : y + 15, 0, name, 1, 80);line(this.leftborder - 4, y, this.width - this.rightborder + 4, y, 100);}@@ -170,12 +170,12 @@ public class ChartPlotter extends RasterPlotter {line(x - 3, y, x + 3, y, 100);s1 = (s >= 1000000 && s % 1000000 == 0) ? Integer.toString(s / 1000000) + "M" : (s >= 1000 && s % 1000 == 0) ? Integer.toString(s / 1000) + "K" : Integer.toString(s);if (s1.length() > s1max) s1max = s1.length();- PrintTool.print(this, (left) ? this.leftborder - 4 : this.width - this.rightborder + 4, y, 0, s1, (left) ? 1 : -1, 80);+ PrintTool.print5(this, (left) ? this.leftborder - 4 : this.width - this.rightborder + 4, y, 0, s1, (left) ? 1 : -1, 80);y -= pixelperscale;s += scale;}setColor(colorNaming);- PrintTool.print(this, (left) ? Math.max(6, x - s1max * 6 - 6) : x + s1max * 6 + 9, this.height - this.bottomborder, 90, name, -1, 80);+ PrintTool.print5(this, (left) ? Math.max(6, x - s1max * 6 - 6) : x + s1max * 6 + 9, this.height - this.bottomborder, 90, name, -1, 80);line(x, this.topborder - 4, x, this.height - this.bottomborder + 4, 100);}diff --git a/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java b/source/net/yacy/visualization/CrtHeatmapConsolePlotter.javaindex e201de39b..57f9fb7bc 100644--- a/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java+++ b/source/net/yacy/visualization/CrtHeatmapConsolePlotter.java@@ -79,10 +79,10 @@ public class CrtHeatmapConsolePlotter extends RasterPlotter {// labelssetColor(0x00FFDD);for (int r = 0; r < rowLabels.length; r++) {- PrintTool.print(this, padding - 8, padding + r * cellHeight + cellHeight / 2, 0, rowLabels[r], 1, 65);+ PrintTool.print5(this, padding - 8, padding + r * cellHeight + cellHeight / 2, 0, rowLabels[r], 1, 65);}for (int c = 0; c < colLabels.length; c++) {- PrintTool.print(this, padding + c * cellWidth + cellWidth / 2, padding - 12, 0, colLabels[c], 0, 65);+ PrintTool.print5(this, padding + c * cellWidth + cellWidth / 2, padding - 12, 0, colLabels[c], 0, 65);}}@@ -107,21 +107,21 @@ public class CrtHeatmapConsolePlotter extends RasterPlotter {line(x, y, x, y + height, 40);line(x + width, y, x + width, y + height, 40);setColor(0x001010);- PrintTool.print(this, x + width / 2, y + height / 2, 0, String.format("%3.0f", value * 100), 0, 55);+ PrintTool.print5(this, x + width / 2, y + height / 2, 0, String.format("%3.0f", value * 100), 0, 55);}private void drawLegend() {final int x = getWidth() - 60;final int y = 50;setColor(0x00FFCC);- PrintTool.print(this, x, y - 16, 90, "TEMP", -1, 70);+ PrintTool.print5(this, x, y - 16, 90, "TEMP", -1, 70);for (int i = 0; i <= 8; i++) {final double v = i / 8.0;final long color = colorForValue(v);setColor(color);line(x - 12, y + i * 12, x, y + i * 12, 40);setColor(0x00EEFF);- PrintTool.print(this, x - 16, y + i * 12, 0, String.format("%2d", (int) (v * 100)), 1, 50);+ PrintTool.print5(this, x - 16, y + i * 12, 0, String.format("%2d", (int) (v * 100)), 1, 50);}}diff --git a/source/net/yacy/visualization/DataSpindleCarouselPlotter.java b/source/net/yacy/visualization/DataSpindleCarouselPlotter.javaindex 32b5d0461..561bca460 100644--- a/source/net/yacy/visualization/DataSpindleCarouselPlotter.java+++ b/source/net/yacy/visualization/DataSpindleCarouselPlotter.java@@ -85,11 +85,11 @@ public class DataSpindleCarouselPlotter extends RasterPlotter {private void drawOverlay(final int frame) {setColor(0x66FFFF);- PrintTool.print(this, 6, 12, 0, "DATA SPINDLE", -1, 80);+ PrintTool.print5(this, 6, 12, 0, "DATA SPINDLE", -1, 80);setColor(0x00FFAA);- PrintTool.print(this, 6, 24, 0, String.format("IDX:%02d", frame % 32), -1, 70);+ PrintTool.print5(this, 6, 24, 0, String.format("IDX:%02d", frame % 32), -1, 70);setColor(0x00CCFF);- PrintTool.print(this, getWidth() - 6, 12, 0, "RPM" + (frame * 37 % 1000), 1, 70);+ PrintTool.print5(this, getWidth() - 6, 12, 0, "RPM" + (frame * 37 % 1000), 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java b/source/net/yacy/visualization/DotMatrixWaterfallPlotter.javaindex 6a70527e8..306c0aff8 100644--- a/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java+++ b/source/net/yacy/visualization/DotMatrixWaterfallPlotter.java@@ -96,8 +96,8 @@ public class DotMatrixWaterfallPlotter extends RasterPlotter {private void drawStepLabel(final int left, final int baseline, final String label, final double value, final long color) {setColor(color);- PrintTool.print(this, left + 2, baseline + 14, 0, label, -1, 70);- PrintTool.print(this, left + 2, baseline + 24, 0, String.format("%+.1f", value), -1, 60);+ PrintTool.print5(this, left + 2, baseline + 14, 0, label, -1, 70);+ PrintTool.print5(this, left + 2, baseline + 24, 0, String.format("%+.1f", value), -1, 60);}private void drawAxes() {@@ -108,10 +108,10 @@ public class DotMatrixWaterfallPlotter extends RasterPlotter {for (int i = 0; i <= 6; i++) {int y = baseline - i * 30;line(60, y, getWidth() - 20, y, 20);- PrintTool.print(this, 42, y, 0, String.format("%+d", i * 10), -1, 50);+ PrintTool.print5(this, 42, y, 0, String.format("%+d", i * 10), -1, 50);}setColor(0x00FFFF);- PrintTool.print(this, getWidth() / 2, 30, 0, "WATERFALL LEDGER", 0, 85);+ PrintTool.print5(this, getWidth() / 2, 30, 0, "WATERFALL LEDGER", 0, 85);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/GraphPlotter.java b/source/net/yacy/visualization/GraphPlotter.javaindex 6f399157b..880b66074 100644--- a/source/net/yacy/visualization/GraphPlotter.java+++ b/source/net/yacy/visualization/GraphPlotter.java@@ -324,7 +324,7 @@ public class GraphPlotter implements Cloneable {image.setColor(c.layer == 0 ? color_dot0_l : color_dota_l);image.dot(x, y, 6, true, 100);image.setColor(color_text_l);- PrintTool.print(image, x, y + 10, 0, name.toUpperCase(), 0 /*x < 2 * width / 5 ? 1 : x > 3 * width / 5 ? -1 : 0*/, 100);+ PrintTool.print5(image, x, y + 10, 0, name.toUpperCase(), 0 /*x < 2 * width / 5 ? 1 : x > 3 * width / 5 ? -1 : 0*/, 100);}// draw linesdiff --git a/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java b/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.javaindex d59eec155..1faf72982 100644--- a/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java+++ b/source/net/yacy/visualization/HeartbeatTelemetryRibbonPlotter.java@@ -82,14 +82,14 @@ public class HeartbeatTelemetryRibbonPlotter extends RasterPlotter {line(x, baseline - ribbonHeight / 2, x, baseline + ribbonHeight / 2, 20);}setColor(0x66FFFF);- PrintTool.print(this, 20, baseline - ribbonHeight / 2 - 12, 0, "SYNC", -1, 70);+ PrintTool.print5(this, 20, baseline - ribbonHeight / 2 - 12, 0, "SYNC", -1, 70);}private void drawOverlay(final int frame) {setColor(0x66FFEE);- PrintTool.print(this, 6, 12, 0, "CARDIAC TELEMETRY", -1, 80);+ PrintTool.print5(this, 6, 12, 0, "CARDIAC TELEMETRY", -1, 80);setColor(0x00FFAA);- PrintTool.print(this, getWidth() - 6, 12, 0, "BPM" + (frame * 3 % 90 + 60), 1, 70);+ PrintTool.print5(this, getWidth() - 6, 12, 0, "BPM" + (frame * 3 % 90 + 60), 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/HexGridPlotter.java b/source/net/yacy/visualization/HexGridPlotter.javaindex 17ff08b2e..c7a736056 100644--- a/source/net/yacy/visualization/HexGridPlotter.java+++ b/source/net/yacy/visualization/HexGridPlotter.java@@ -101,12 +101,12 @@ public class HexGridPlotter extends RasterPlotter {}public void gridPrint(final int x, final int y, final int radius, final String messageHigh, final String messageLow, final int align, int intensity) {- if (messageHigh != null && messageHigh.length() > 0) PrintTool.print(this, projectionX(x, y) - align * radius, projectionY(y) - (cellwidth2 >> 2) - ((align == 0) ? radius : 0), 0, messageHigh, align, intensity);- if (messageLow != null && messageLow.length() > 0) PrintTool.print(this, projectionX(x, y) - align * radius, projectionY(y) + (cellwidth2 >> 2) + 4 + ((align == 0) ? radius : 0), 0, messageLow, align, intensity);+ if (messageHigh != null && messageHigh.length() > 0) PrintTool.print5(this, projectionX(x, y) - align * radius, projectionY(y) - (cellwidth2 >> 2) - ((align == 0) ? radius : 0), 0, messageHigh, align, intensity);+ if (messageLow != null && messageLow.length() > 0) PrintTool.print5(this, projectionX(x, y) - align * radius, projectionY(y) + (cellwidth2 >> 2) + 4 + ((align == 0) ? radius : 0), 0, messageLow, align, intensity);}public void gridPrint315(final int x, final int y, final int radius, final String message315, int intensity) {- if (message315 != null && message315.length() > 0) PrintTool.print(this, projectionX(x, y) + (radius >> 1), projectionY(y) + (cellwidth2 >> 2) + 4, 315, message315, -1, intensity);+ if (message315 != null && message315.length() > 0) PrintTool.print5(this, projectionX(x, y) + (radius >> 1), projectionY(y) + (cellwidth2 >> 2) + 4, 315, message315, -1, intensity);}public void gridLine(diff --git a/source/net/yacy/visualization/IsometricPlotter.java b/source/net/yacy/visualization/IsometricPlotter.javaindex 9a3f1aeb9..ce3c09d4b 100644--- a/source/net/yacy/visualization/IsometricPlotter.java+++ b/source/net/yacy/visualization/IsometricPlotter.java@@ -128,11 +128,11 @@ public class IsometricPlotter extends RasterPlotter {private void drawForeground() {setColor(0x00AAFF);- PrintTool.print(this, 6, 12, 0, "ISOMETRIC CITYSCAPE", -1, 90);+ PrintTool.print5(this, 6, 12, 0, "ISOMETRIC CITYSCAPE", -1, 90);setColor(0x66FFFF);- PrintTool.print(this, 6, 24, 0, "GRID SECTOR 7B", -1, 70);+ PrintTool.print5(this, 6, 24, 0, "GRID SECTOR 7B", -1, 70);setColor(0x00CCAA);- PrintTool.print(this, getWidth() - 6, getHeight() - 8, 0, "POPULATION: 1.2M", 1, 60);+ PrintTool.print5(this, getWidth() - 6, getHeight() - 8, 0, "POPULATION: 1.2M", 1, 60);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/PixelTrendMatrixPlotter.java b/source/net/yacy/visualization/PixelTrendMatrixPlotter.javaindex 7f8a5fe5b..7af5a9f84 100644--- a/source/net/yacy/visualization/PixelTrendMatrixPlotter.java+++ b/source/net/yacy/visualization/PixelTrendMatrixPlotter.java@@ -99,7 +99,7 @@ public class PixelTrendMatrixPlotter extends RasterPlotter {dot(x, y, 2, true, 80);}setColor(0x66FFDD);- PrintTool.print(this, x0 + width / 2, y0 + 10, 0, labelForCell(values), 0, 70);+ PrintTool.print5(this, x0 + width / 2, y0 + 10, 0, labelForCell(values), 0, 70);}private String labelForCell(final double[] values) {diff --git a/source/net/yacy/visualization/PrintTool.java b/source/net/yacy/visualization/PrintTool.javaindex 6bbfa96b5..f60781c51 100644--- a/source/net/yacy/visualization/PrintTool.java+++ b/source/net/yacy/visualization/PrintTool.java@@ -24,7 +24,7 @@ package net.yacy.visualization;public class PrintTool {- private static long[] font = new long[]{+ private static long[] font5 = new long[]{0x00000000000000L,0x00300C03000030L,0x00CC3300000000L,0x00CCFFCCCFFCCCL,0x02FFCC2FE0CFFEL,0x00C3CF0FC3CF0CL,0x02FCE02ECCE2ECL,0x00300C00000000L,0x00030380C03803L,0x0300B00C0B0000L,0x0000332BA03000L,0x00000C0FC0C000L,0x0000000302C0C0L,0x0000000FC00000L,0x00000000000030L,0x00030383838380L,0x00FCE3F33F2CFCL,0x00303C0300C0FCL,0x00FCE2CBEB83FFL,0x00FCE2C0EE2CFCL,0x00BCBB3FF0300CL,0x03FFC03FC02FFCL,0x00FCE03FEE2CFCL,0x03FF0B8380C030L,@@ -38,11 +38,26 @@ public class PrintTool {0x0000FF30BFF300L,0x00003FF833FC03L,0x00000B0380C030L,0x0000000BCBAFACL,0x00303F0300C030L,0x000000303E2CFCL,0x00000038BBB8B8L,0x000000333EECECL,0x0000000EC2E0ECL,0x0000000EC2E030L,0x0000000FF2E3FCL,0x000F0B8B80B80FL,0x00300C0300C030L,0x03C0B80B8B83C0L,0x0000B83BB0B800L,0x03FFC0F03C0FFFL};++ private static long[] font8 = new long[] {+ 0x00000000,0x02000200,0x00000000,0x1F050500,0x031F0200,0x04081000,0x12110E00,0x00000000,+ 0x04020100,0x00010200,0x07090200,0x02020000,0x00030301,0x00000000,0x00030300,0x04081000,+ 0x14180F00,0x02020F00,0x02040F00,0x00080700,0x0F000000,0x00000F00,0x08080700,0x02020200,+ 0x08080700,0x00080700,0x00030300,0x00030301,0x0C030000,0x07000000,0x01061800,0x02000200,+ 0x11100F00,0x10101000,0x10101F00,0x10080700,0x10101F00,0x10101F00,0x10101000,0x10100F00,+ 0x10101000,0x02020700,0x01110E00,0x13111000,0x10101F00,0x10101000,0x11101000,0x10100F00,+ 0x10101000,0x10110F00,0x11101000,0x00100F00,0x02020200,0x10100F00,0x08050200,0x12150800,+ 0x05081000,0x02020200,0x04081F00,0x04040700,0x01000000,0x00000700,0x00000000,0x00001F00,+ 0x00000000,0x0F100F00,0x10101F00,0x10100F00,0x10100F00,0x1F100F00,0x04040400,0x100F000F,+ 0x10101000,0x02020700,0x01010106,0x1C131000,0x02020700,0x12121200,0x10101000,0x10100F00,+ 0x101F1010,0x100F0000,0x10101000,0x0F000F00,0x02020100,0x10100F00,0x08050200,0x12150800,+ 0x020D1000,0x100F000F,0x020C1F00,0x04040300,0x02020202,0x00000300,0x00000000,0x10101F00,+ };- private static void print(final RasterPlotter matrix, int x, int y, final int angle, final char letter, int intensity) {+ private static void print5(final RasterPlotter matrix, int x, int y, final int angle, final char letter, int intensity) {final int index = letter - 0x20;- if (index >= font.length) return;- long character = font[index];+ if (index >= font5.length) return;+ long character = font5[index];long row;long c;int i2 = intensity / 2;@@ -82,7 +97,7 @@ public class PrintTool {}}- public static void print(final RasterPlotter matrix, final int x, final int y, final int angle, final String message, final int align, int intensity) {+ public static void print5(final RasterPlotter matrix, final int x, final int y, final int angle, final String message, final int align, int intensity) {// align = -1 : left// align = 1 : right// align = 0 : center@@ -98,7 +113,7 @@ public class PrintTool {yy = (align == -1) ? y : (align == 1) ? y - 6 * message.length() : y - 3 * message.length();}for (int i = 0; i < message.length(); i++) {- print(matrix, xx, yy, angle, message.charAt(i), intensity);+ print5(matrix, xx, yy, angle, message.charAt(i), intensity);if (angle == 0) xx += 6;else if (angle == 90) yy -= 6;else if (angle == 315) {xx += 6; yy += 6;}@@ -116,7 +131,7 @@ public class PrintTool {* @param angle angle == position of text on a circle in distance of radius* @param message the message to be printed*/- public static void arcPrint(final RasterPlotter matrix, final int cx, final int cy, final int radius, final double angle, final String message, final int intensity) {+ public static void arcPrint5(final RasterPlotter matrix, final int cx, final int cy, final int radius, final double angle, final String message, final int intensity) {final int x = cx + (int) ((radius + 1) * Math.cos(RasterPlotter.PI180 * angle));final int y = cy - (int) ((radius + 1) * Math.sin(RasterPlotter.PI180 * angle));int yp = y + 3;@@ -127,7 +142,7 @@ public class PrintTool {int xp = x - 3 * message.length();if ((angle > (90 + arcDist)) && (angle < (270 - arcDist))) xp = x - 6 * message.length();if ((angle < (90 - arcDist)) || (angle > (270 + arcDist))) xp = x;- print(matrix, xp, yp, 0, message, -1, intensity);+ print5(matrix, xp, yp, 0, message, -1, intensity);}diff --git a/source/net/yacy/visualization/RadarPlotter.java b/source/net/yacy/visualization/RadarPlotter.javaindex a559fcb2a..e4d8957db 100644--- a/source/net/yacy/visualization/RadarPlotter.java+++ b/source/net/yacy/visualization/RadarPlotter.java@@ -103,11 +103,11 @@ public class RadarPlotter extends RasterPlotter {private void drawOverlay() {setColor(0x006699);- PrintTool.print(this, 4, 12, 0, "NEON VECTOR RADAR", -1, 80);+ PrintTool.print5(this, 4, 12, 0, "NEON VECTOR RADAR", -1, 80);setColor(0x00FFFF);- PrintTool.print(this, 4, 24, 0, "SCAN ACTIVE", -1, 70);+ PrintTool.print5(this, 4, 24, 0, "SCAN ACTIVE", -1, 70);setColor(0x004466);- PrintTool.print(this, getWidth() - 4, 12, 0, "RANGE:" + outerRadius + "px", 1, 70);+ PrintTool.print5(this, getWidth() - 4, 12, 0, "RANGE:" + outerRadius + "px", 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/RasterPlotter.java b/source/net/yacy/visualization/RasterPlotter.javaindex c7d102728..783a4f71b 100644--- a/source/net/yacy/visualization/RasterPlotter.java+++ b/source/net/yacy/visualization/RasterPlotter.java@@ -686,7 +686,7 @@ public class RasterPlotter {if (ym < cy) ym += 6; else ym -=6;if (xm < cx) xm += 6; else xm -=6;if (xm > cx) xm -= 6 * message.length();- PrintTool.print(this, xm, ym, 0, message.toUpperCase(), -1, intensityMessage);+ PrintTool.print5(this, xm, ym, 0, message.toUpperCase(), -1, intensityMessage);}}@@ -1064,16 +1064,16 @@ public class RasterPlotter {public static void demoPaint(final RasterPlotter m) {m.setColor(GREY);- m.line(0, 70, 100, 70, 100); PrintTool.print(m, 0, 65, 0, "Grey", -1, 100);+ m.line(0, 70, 100, 70, 100); PrintTool.print5(m, 0, 65, 0, "Grey", -1, 100);m.line(65, 0, 65, 300, 100);m.setColor(RED);- m.line(0, 90, 100, 90, 100); PrintTool.print(m, 0, 85, 0, "Red", -1, 100);+ m.line(0, 90, 100, 90, 100); PrintTool.print5(m, 0, 85, 0, "Red", -1, 100);m.line(70, 0, 70, 300, 100);m.setColor(GREEN);- m.line(0, 110, 100, 110, 100); PrintTool.print(m, 0, 105, 0, "Green", -1, 100);+ m.line(0, 110, 100, 110, 100); PrintTool.print5(m, 0, 105, 0, "Green", -1, 100);m.line(75, 0, 75, 300, 100);m.setColor(BLUE);- m.line(0, 130, 100, 130, 100); PrintTool.print(m, 0, 125, 0, "Blue", -1, 100);+ m.line(0, 130, 100, 130, 100); PrintTool.print5(m, 0, 125, 0, "Blue", -1, 100);m.line(80, 0, 80, 300, 100);}diff --git a/source/net/yacy/visualization/RetroVfdDashboardPlotter.java b/source/net/yacy/visualization/RetroVfdDashboardPlotter.javaindex ba4f3894e..a002faabc 100644--- a/source/net/yacy/visualization/RetroVfdDashboardPlotter.java+++ b/source/net/yacy/visualization/RetroVfdDashboardPlotter.java@@ -75,30 +75,30 @@ public class RetroVfdDashboardPlotter extends RasterPlotter {final int tx = cx + (int) (Math.cos(Math.toRadians(angle)) * (inner - 20));final int ty = cy - (int) (Math.sin(Math.toRadians(angle)) * (inner - 20));setColor(color);- PrintTool.print(this, tx, ty, 0, Integer.toString(tick), -1, intensity);+ PrintTool.print5(this, tx, ty, 0, Integer.toString(tick), -1, intensity);}}setColor(color);final int needleAngle = start + sweep;arcLine(cx, cy, 0, inner, needleAngle, true, null, null, -1, -1, -1, false);dot(cx, cy, 6, true, 80);- PrintTool.print(this, cx, (int) (cy + labelOffset * radius), 0, label, 0, 75);+ PrintTool.print5(this, cx, (int) (cy + labelOffset * radius), 0, label, 0, 75);}private void drawCounters(final double fraction) {final long color = 0x00FFD8;setColor(color);final int baseY = centerY + 150;- PrintTool.print(this, centerX - 150, baseY, 0, "REQ/S", -1, 70);- PrintTool.print(this, centerX + 150, baseY, 0, "ERROR%", -1, 70);+ PrintTool.print5(this, centerX - 150, baseY, 0, "REQ/S", -1, 70);+ PrintTool.print5(this, centerX + 150, baseY, 0, "ERROR%", -1, 70);setColor(0x003030);fillRectangle(centerX - 200, baseY - 4, centerX - 40, baseY + 20);fillRectangle(centerX + 40, baseY - 4, centerX + 200, baseY + 20);final String left = sevenSegmentNumber(4300 + (int) (fraction * 1200));final String right = sevenSegmentNumber((int) (fraction * 240));setColor(color);- PrintTool.print(this, centerX - 40, baseY + 8, 0, left, -1, 100);- PrintTool.print(this, centerX + 200, baseY + 8, 0, right, -1, 100);+ PrintTool.print5(this, centerX - 40, baseY + 8, 0, left, -1, 100);+ PrintTool.print5(this, centerX + 200, baseY + 8, 0, right, -1, 100);}private void fillRectangle(final int x1, final int y1, final int x2, final int y2) {@@ -116,7 +116,7 @@ public class RetroVfdDashboardPlotter extends RasterPlotter {dot(x, top, 12, true, intensity);dot(x, top, 6, true, intensity + 10);setColor(colors[i]);- PrintTool.print(this, x, top - 20, 0, labels[i], 0, 60);+ PrintTool.print5(this, x, top - 20, 0, labels[i], 0, 60);}}diff --git a/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java b/source/net/yacy/visualization/SignalCascadeMatrixPlotter.javaindex 9c8fdfa34..5fd6497fb 100644--- a/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java+++ b/source/net/yacy/visualization/SignalCascadeMatrixPlotter.java@@ -99,9 +99,9 @@ public class SignalCascadeMatrixPlotter extends RasterPlotter {private void drawOverlay() {setColor(0x66FFFF);- PrintTool.print(this, 6, 14, 0, "SIGNAL CASCADE", -1, 80);+ PrintTool.print5(this, 6, 14, 0, "SIGNAL CASCADE", -1, 80);setColor(0x00FFAA);- PrintTool.print(this, getWidth() - 6, 14, 0, "CHANNELS:" + columns, 1, 70);+ PrintTool.print5(this, getWidth() - 6, 14, 0, "CHANNELS:" + columns, 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/SkylinePlotter.java b/source/net/yacy/visualization/SkylinePlotter.javaindex e7a7c7eb5..4007a481f 100644--- a/source/net/yacy/visualization/SkylinePlotter.java+++ b/source/net/yacy/visualization/SkylinePlotter.java@@ -667,7 +667,7 @@ public class SkylinePlotter extends RasterPlotter {setColor(labelColor);final int targetX = reference.x + object.labelOffsetX;final int targetY = reference.y + object.labelOffsetY;- PrintTool.print(this, targetX, targetY, 0, object.label, -1, clampIntensity(object.labelIntensity));+ PrintTool.print5(this, targetX, targetY, 0, object.label, -1, clampIntensity(object.labelIntensity));}private void drawLineWithPattern(final int patternModulo, final double patternPhase, final Projection start, final Projection end, final int intensity, final double animationAngle) {diff --git a/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java b/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.javaindex a176ae09f..9d8750208 100644--- a/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java+++ b/source/net/yacy/visualization/SpectralAnalyzerStripPlotter.java@@ -99,11 +99,11 @@ public class SpectralAnalyzerStripPlotter extends RasterPlotter {private void drawOverlay() {setColor(0x66FFFF);- PrintTool.print(this, 6, 12, 0, "SPECTRAL ANALYZER", -1, 80);+ PrintTool.print5(this, 6, 12, 0, "SPECTRAL ANALYZER", -1, 80);setColor(0x00FFAA);- PrintTool.print(this, 6, getHeight() - 10, 0, "HZ" + random.nextInt(8000), -1, 60);+ PrintTool.print5(this, 6, getHeight() - 10, 0, "HZ" + random.nextInt(8000), -1, 60);setColor(0x00BBFF);- PrintTool.print(this, getWidth() - 6, 12, 0, "GAIN" + random.nextInt(30), 1, 70);+ PrintTool.print5(this, getWidth() - 6, 12, 0, "GAIN" + random.nextInt(30), 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/StarTunnelPlotter.java b/source/net/yacy/visualization/StarTunnelPlotter.javaindex 6349da2ac..842d74d84 100644--- a/source/net/yacy/visualization/StarTunnelPlotter.java+++ b/source/net/yacy/visualization/StarTunnelPlotter.java@@ -111,11 +111,11 @@ public class StarTunnelPlotter extends RasterPlotter {private void drawOverlay() {setColor(0x00FFCC);- PrintTool.print(this, 4, 12, 0, "STAR TUNNEL", -1, 90);+ PrintTool.print5(this, 4, 12, 0, "STAR TUNNEL", -1, 90);setColor(0x66FFFF);- PrintTool.print(this, 4, 22, 0, "HYPERSPACE VECTOR", -1, 70);+ PrintTool.print5(this, 4, 22, 0, "HYPERSPACE VECTOR", -1, 70);setColor(0x00AACC);- PrintTool.print(this, getWidth() - 4, getHeight() - 6, 0, "SPEED:" + (int) speed * stars.length, 1, 70);+ PrintTool.print5(this, getWidth() - 4, getHeight() - 6, 0, "SPEED:" + (int) speed * stars.length, 1, 70);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java b/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.javaindex bdf6b7ea6..36aeda99b 100644--- a/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java+++ b/source/net/yacy/visualization/TelemetryOrbitalSweepPlotter.java@@ -90,18 +90,18 @@ public class TelemetryOrbitalSweepPlotter extends RasterPlotter {private void drawOverlay(final int frame) {setColor(0x66FFFF);- PrintTool.print(this, 6, 12, 0, "ORBITAL TELEMETRY", -1, 80);- PrintTool.print(this, 6, 22, 0, String.format("SWEEP:%03d", (frame * 45) % 360), -1, 70);+ PrintTool.print5(this, 6, 12, 0, "ORBITAL TELEMETRY", -1, 80);+ PrintTool.print5(this, 6, 22, 0, String.format("SWEEP:%03d", (frame * 45) % 360), -1, 70);setColor(0x00CCFF);- PrintTool.print(this, getWidth() - 6, 12, 0, "ALT/KM", 1, 70);- PrintTool.print(this, getWidth() - 6, 22, 0, "VEL/MPS", 1, 70);+ PrintTool.print5(this, getWidth() - 6, 12, 0, "ALT/KM", 1, 70);+ PrintTool.print5(this, getWidth() - 6, 22, 0, "VEL/MPS", 1, 70);final int statusY = getHeight() - 18;setColor(0x00FFAA);- PrintTool.print(this, 6, statusY, 0, "LOCK", -1, 70);+ PrintTool.print5(this, 6, statusY, 0, "LOCK", -1, 70);setColor(0xFF66CC);- PrintTool.print(this, 70, statusY, 0, "TRACK", -1, 60);+ PrintTool.print5(this, 70, statusY, 0, "TRACK", -1, 60);setColor(0x00DDFF);- PrintTool.print(this, getWidth() - 6, statusY, 0, "SIG" + (frame % 8), 1, 60);+ PrintTool.print5(this, getWidth() - 6, statusY, 0, "SIG" + (frame % 8), 1, 60);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java b/source/net/yacy/visualization/TriangulationGridOverlayPlotter.javaindex 700ec73ea..29fab59b6 100644--- a/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java+++ b/source/net/yacy/visualization/TriangulationGridOverlayPlotter.java@@ -100,12 +100,12 @@ public class TriangulationGridOverlayPlotter extends RasterPlotter {final int left = 20;final int top = 20;setColor(0x66FFFF);- PrintTool.print(this, left, top, 0, "TRIANGULATION", -1, 80);+ PrintTool.print5(this, left, top, 0, "TRIANGULATION", -1, 80);setColor(0x00FFAA);- PrintTool.print(this, left, top + 12, 0, String.format("Bearing:%03d", (frame * 6) % 360), -1, 70);- PrintTool.print(this, left, top + 24, 0, String.format("Phase:%02d", frame % 8), -1, 60);+ PrintTool.print5(this, left, top + 12, 0, String.format("Bearing:%03d", (frame * 6) % 360), -1, 70);+ PrintTool.print5(this, left, top + 24, 0, String.format("Phase:%02d", frame % 8), -1, 60);setColor(0x00BBFF);- PrintTool.print(this, getWidth() - 6, getHeight() - 10, 0, "COORD" + (frame % 5), 1, 60);+ PrintTool.print5(this, getWidth() - 6, getHeight() - 10, 0, "COORD" + (frame % 5), 1, 60);}public static void main(final String[] args) {diff --git a/source/net/yacy/visualization/WireframeBarPrismPlotter.java b/source/net/yacy/visualization/WireframeBarPrismPlotter.javaindex 7597e0ab9..111a979ff 100644--- a/source/net/yacy/visualization/WireframeBarPrismPlotter.java+++ b/source/net/yacy/visualization/WireframeBarPrismPlotter.java@@ -64,7 +64,7 @@ public class WireframeBarPrismPlotter extends RasterPlotter {for (int i = 0; i <= 5; i++) {int y = originY - i * 40;line(originX, y, getWidth() - 60, y - depth * 2, 20);- PrintTool.print(this, originX - 70, y, 0, String.format("%3d", i * 20), -1, 60);+ PrintTool.print5(this, originX - 70, y, 0, String.format("%3d", i * 20), -1, 60);}}@@ -114,7 +114,7 @@ public class WireframeBarPrismPlotter extends RasterPlotter {// labelsetColor(lighten(baseColor, 1.3d));final String label = String.format("S%d-%d", series + 1, index + 1);- PrintTool.print(this, frontLeftX + barWidth / 2, originY + 14 + series * 12, 0, label, 0, 60);+ PrintTool.print5(this, frontLeftX + barWidth / 2, originY + 14 + series * 12, 0, label, 0, 60);}private void drawLegend() {@@ -123,10 +123,10 @@ public class WireframeBarPrismPlotter extends RasterPlotter {for (int i = 0; i < colors.length; i++) {setColor(colors[i]);dot(x, y + i * 18, 6, true, 90);- PrintTool.print(this, x + 10, y + i * 18 + 4, 0, "SERIES " + (i + 1), -1, 70);+ PrintTool.print5(this, x + 10, y + i * 18 + 4, 0, "SERIES " + (i + 1), -1, 70);}setColor(0x00EEFF);- PrintTool.print(this, x, y - 16, 0, "DATASET", -1, 80);+ PrintTool.print5(this, x, y - 16, 0, "DATASET", -1, 80);}public static void main(final String[] args) {