Index: applications/editors/josm/plugins/seachart/jrender/src/jrender/Jrender.java
===================================================================
--- applications/editors/josm/plugins/seachart/jrender/src/jrender/Jrender.java	(revision 32906)
+++ applications/editors/josm/plugins/seachart/jrender/src/jrender/Jrender.java	(revision 32907)
@@ -1,11 +1,3 @@
-/* Copyright 2014 Malcolm Herring
- *
- * This is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, version 3 of the License.
- *
- * For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
- */
-
+// License: GPL. For details, see LICENSE file.
 package jrender;
 
@@ -27,10 +19,18 @@
 import javax.imageio.ImageIO;
 
+import render.ChartContext;
+import render.Renderer;
 import s57.S57map;
+import s57.S57map.Feature;
+import s57.S57map.Snode;
 import s57.S57osm;
-import s57.S57map.*;
-import render.*;
 
-public class Jrender {
+/**
+ * @author Malcolm Herring
+ */
+public final class Jrender {
+    private Jrender() {
+        // Hide default constructor for utilities classes
+    }
 
     static String srcdir;
@@ -46,39 +46,47 @@
 
     static class Context implements ChartContext {
-        
-      static double top;
-      static double mile;
-      
-      public Context () {
-            top = (1.0 - Math.log(Math.tan(map.bounds.maxlat) + 1.0 / Math.cos(map.bounds.maxlat)) / Math.PI) / 2.0 * 256.0 * 4096.0 * Math.pow(2, (zoom - 12));
-            mile = (2 * ((zoom < 12) ? (256 / (int)(Math.pow(2, (11 - zoom)))) : 256) + 256) / ((Math.toDegrees(map.bounds.maxlat) - Math.toDegrees(map.bounds.minlat)) * 60);
-      }
-      
+
+        static double top;
+        static double mile;
+
+        Context() {
+            top = (1.0 - Math.log(Math.tan(map.bounds.maxlat) + 1.0 / Math.cos(map.bounds.maxlat)) / Math.PI)
+                    / 2.0 * 256.0 * 4096.0 * Math.pow(2, (zoom - 12));
+            mile = (2 * ((zoom < 12) ? (256 / (int) (Math.pow(2, (11 - zoom)))) : 256) + 256)
+                    / ((Math.toDegrees(map.bounds.maxlat) - Math.toDegrees(map.bounds.minlat)) * 60);
+        }
+
+        @Override
         public Point2D getPoint(Snode coord) {
             double x = (Math.toDegrees(coord.lon) - Math.toDegrees(map.bounds.minlon)) * 256.0 * 2048.0 * Math.pow(2, (zoom - 12)) / 180.0;
-            double y = ((1.0 - Math.log(Math.tan(coord.lat) + 1.0 / Math.cos(coord.lat)) / Math.PI) / 2.0 * 256.0 * 4096.0 * Math.pow(2, (zoom - 12))) - top;
+            double y = ((1.0 - Math.log(Math.tan(coord.lat) + 1.0 / Math.cos(coord.lat)) / Math.PI)
+                    / 2.0 * 256.0 * 4096.0 * Math.pow(2, (zoom - 12))) - top;
             return new Point2D.Double(x, y);
         }
 
+        @Override
         public double mile(Feature feature) {
             return mile;
         }
 
+        @Override
         public boolean clip() {
             return false;
         }
 
+        @Override
         public Color background(S57map map) {
             return new Color(0, true);
         }
 
+        @Override
         public RuleSet ruleset() {
             return RuleSet.SEAMARK;
         }
     }
-    
+
     static void tile(int z, int s, int xn, int yn) throws IOException {
-        int border = (z < 12) ? (256 / (int)(Math.pow(2, (11 - zoom)))) : 256;
-        int scale = (int)Math.pow(2, z - 12);
+        int border = (z < 12) ? (256 / (int) (Math.pow(2, (11 - zoom)))) : 256;
+        int scale = (int) Math.pow(2, z - 12);
         int xdir = (scale > 0) ? (scale * xtile) + xn : xtile;
         int ynam = (scale > 0) ? (scale * ytile) + yn : ytile;
@@ -116,5 +124,5 @@
         }
     }
-    
+
     static void clean(int z, int xn, int yn) throws Exception {
         int scale = (int) Math.pow(2, z - 12);
@@ -135,5 +143,5 @@
         }
     }
-    
+
     public static void main(String[] args) throws Exception {
         if (args.length < 5) {
