package org.mapfish.print;

import java.nio.charset.Charset;

/**
 * Strings used in configurations etc... User: jeichar Date: Sep 30, 2010 Time: 4:27:46 PM
 *
 */
public interface Constants {
    /**
     * The layout tag in the json spec file.
     */
    String JSON_LAYOUT_KEY = "layout";

    /**
     * The output filename in the json spec file.
     */
    String OUTPUT_FILENAME_KEY = "outputFilename";

    /**
     * The default encoding to use throughout the system.  This can be set by setting the system property:
     *
     * <em>mapfish.file.encoding</em>
     *
     * before starting the JVM.
     */
    String DEFAULT_ENCODING = System.getProperty("mapfish.file.encoding", "UTF-8");

    /**
     * The default charset.  Depends on {@link #DEFAULT_ENCODING}.
     */
    Charset DEFAULT_CHARSET = Charset.forName(DEFAULT_ENCODING);

    /**
     * The DPI of a PDF according to the spec.  Also the DPI used by old Openlayers versions (2.0 and
     * earlier).
     */
    double PDF_DPI = 72.0;

    /**
     * Used to convert inches in mm.
     */
    double INCH_TO_MM = 25.4;

    /**
     * The OGC standard pixel size in mm.
     */
    double OGC_PIXEL_SIZE = 0.28;

    /**
     * The OGC standard dpi. (About 90 dpi)
     */
    double OGC_DPI = INCH_TO_MM / OGC_PIXEL_SIZE;

    /**
     * The amount of precision to use when comparing opacity levels.  For example 0.0009 is considered the
     * same as 0.0 for opacity
     */
    double OPACITY_PRECISION = 0.001;

    /**
     * Style related constants.
     */
    interface Style {
        double POINT_SIZE = 10.0;

        /**
         * Grid style constants.
         */
        interface Grid {

            /**
             * The name of the grid feature type name.
             */
            String NAME_LINES = "grid";
            /**
             * The geometry attribute name.
             */
            String ATT_GEOM = "geom";
        }

        /**
         * Raster style constants.
         */
        interface Raster {

            /**
             * The default style name for raster layers.
             */
            String NAME = "raster";
        }

        /**
         * Default Style for the Overview Map and Area of interest.
         */
        interface OverviewMap {

            /**
             * The default style name for the bbox rectangle in the overview map.
             */
            String NAME = "overview-map";
        }
    }
}

@@ -168,29 +168,87 @@
 lic 
+f
 in
-terface Constants %7B
+al class Constants %7B%0A%0A    private Constants() %7B%0A        // not called%0A    %7D%0A
 %0A   
@@ -305,24 +305,44 @@
      */%0A    
+public static final 
 String JSON_
@@ -431,24 +431,44 @@
      */%0A    
+public static final 
 String OUTPU
@@ -710,24 +710,44 @@
      */%0A    
+public static final 
 String DEFAU
@@ -902,16 +902,36 @@
  */%0A    
+public static final 
 Charset 
@@ -1119,24 +1119,44 @@
      */%0A    
+public static final 
 double PDF_D
@@ -1220,24 +1220,44 @@
      */%0A    
+public static final 
 double INCH_
@@ -1325,32 +1325,52 @@
 mm.%0A     */%0A    
+public static final 
 double OGC_PIXEL
@@ -1440,32 +1440,52 @@
 pi)%0A     */%0A    
+public static final 
 double OGC_DPI =
@@ -1669,24 +1669,44 @@
      */%0A    
+public static final 
 double OPACI
@@ -1784,23 +1784,66 @@
     
-interfac
+public static final class Style %7B%0A%0A        privat
 e Style
+()
  %7B%0A 
@@ -1849,16 +1849,73 @@
         
+  
+  // not called%0A        %7D%0A%0A        public static final 
 double P
@@ -2002,24 +2002,114 @@
     
-interface Grid %7B
+public static final class Grid %7B%0A%0A            private Grid() %7B%0A                // not called%0A            %7D
 %0A%0A  
@@ -2197,32 +2197,52 @@
  */%0A            
+public static final 
 String NAME_LINE
@@ -2337,24 +2337,44 @@
             
+public static final 
 String ATT_G
@@ -2469,26 +2469,118 @@
     
-interface Raster %7B
+public static final class Raster %7B%0A%0A            private Raster() %7B%0A                // not called%0A            %7D
 %0A%0A  
@@ -2670,32 +2670,52 @@
  */%0A            
+public static final 
 String NAME = %22r
@@ -2837,31 +2837,128 @@
     
-interface OverviewMap %7B
+public static final class OverviewMap %7B%0A%0A            private OverviewMap() %7B%0A                // not called%0A            %7D
 %0A%0A  
@@ -3081,16 +3081,36 @@
         
+public static final 
 String N

Make Constants a class, not an interface.