From 8b97956943446092d85d8545a7db692c92aee17e Mon Sep 17 00:00:00 2001 From: sfop Date: Wed, 5 Oct 2016 17:01:46 +0200 Subject: [PATCH] Startup --- plugins/ScreenPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ScreenPanel.java b/plugins/ScreenPanel.java index c5c49a3..bf141cb 100644 --- a/plugins/ScreenPanel.java +++ b/plugins/ScreenPanel.java @@ -698,7 +698,7 @@ public class ScreenPanel extends Panel { new Dimension(2 * xSigma.intValue(), 2 * ySigma.intValue())); text = new Overlays.Text(fitPen, - String.format("x = %f \n y = %f" , data.getX((int) Math.round(xMean)), data.getY((int) Math.round(yMean))), + String.format("x = %1.3f \n y = %1.3f" , data.getX((int) Math.round(xMean)), data.getY((int) Math.round(yMean))), new Font(Font.MONOSPACED, 0, 14), new Point(20,20)); text.setFixed(true); text.setAnchor(Overlay.ANCHOR_VIEWPORT_TOP_LEFT); @@ -1791,7 +1791,7 @@ public class ScreenPanel extends Panel { //byte[] arr = (byte[]) (((DataBufferByte)(Utils.grayscale(renderer.getImage()).getRaster().getDataBuffer())).getData()); //Object image = Convert.toBidimensional(arr, renderer.getImage().getWidth(), renderer.getImage().getHeight()); //getController().getDataManager().setDataset("/image", image); - //elog("ScreenPanel Snapshot", "Data file: " + getController().getExecutionContext().getPath(), new String[]{snapshotFile}); + elog("ScreenPanel Snapshot", "Data file: " + getController().getExecutionContext().getPath(), new String[]{snapshotFile}); } catch (Exception ex) { ex.printStackTrace();