package eg;

import java.awt.Font;
import java.awt.Color;

import javax.swing.border.Border;
import javax.swing.border.LineBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.MatteBorder;

//--Eadgyth--/
import eg.utils.ScreenParams;

/**
 * Holds different static values.
 * <p>
 * The note 'scaled' in the comments means that sizes may be scaled to
 * the screen resolution.
 * @see ScreenParams#scaledSize
 */
public class Constants {

   //
   // Sizes

   /**
    * The height for bars (scaled) */
   public final static int BAR_HEIGHT = scaledSize(17);

   //
   // Colors

   /**
    * The gray color */
   public final static Color GRAY = new Color(100, 100, 100);

   /**
    * The ligh gray color */
   public final static Color LIGHT_GRAY = new Color(200, 200, 200);

   //
   // Borders

   /**
    * The line border with dark gray color */
   public final static Border GRAY_BORDER = new LineBorder(Constants.GRAY, 1);

   /**
    * The empty border with thickness of 5 pt */
   public final static Border EMPTY_BORDER_5 = new EmptyBorder(5, 5, 5, 5);

   /**
    * The empty border with thickness of 0 pt */
   public final static Border EMPTY_BORDER_0 = new EmptyBorder(0, 0, 0, 0);

   /**
    * The empty border with thickness of 10 pt */
   public final static Border EMPTY_BORDER_10 = new EmptyBorder(10, 10, 10, 10);

   /**
    * The <code>MatteBorder</code> with inset of 1 pt in light gray at the top */
   public final static Border MATTE_TOP = new MatteBorder(1, 0, 0, 0,
         Constants.LIGHT_GRAY);

   /**
    * The <code>MatteBorder</code> with inset of 1 pt in gray at the top */
   public final static Border MATTE_TOP_GREY = new MatteBorder(1, 0, 0, 0,
         Constants.GRAY);

   /**
    * The <code>MatteBorder</code> with inset of 1 pt in light gray at the top
    * and bottom */
   public final static Border MATTE_TOP_BOTTOM = new MatteBorder(1, 0, 1, 0,
         Constants.LIGHT_GRAY);

   //
   // Fonts

   /**
    * The font sans-serif, plain, size 9 pt (scaled) */
   public final static Font SANSSERIF_PLAIN_8
         = new Font("SansSerif", Font.PLAIN, scaledSize(8.0));

   /**
    * The font sans-serif, bold, size 8 pt (scaled) */
   public final static Font SANSSERIF_BOLD_8
         = new Font("SansSerif", Font.BOLD, scaledSize(8.0));

   /**
    * The font sans-serif, plain, size 9 pt (scaled) */
   public final static Font SANSSERIF_PLAIN_9
         = new Font("SansSerif", Font.PLAIN, scaledSize(9.0));

   /**
    * The font sans-serif, bold, size 9 pt (scaled) */
   public final static Font SANSSERIF_BOLD_9
         = new Font("SansSerif", Font.BOLD, scaledSize(9.0));

  /**
    * The font sans-serif, bold, size 11 pt (scaled) */
   public final static Font SANSSERIF_BOLD_11
         = new Font("SansSerif", Font.BOLD, scaledSize(11.0));

   /**
    * The font verdana, plain, size 9 pt (scaled) */
   public final static Font VERDANA_PLAIN_8
         = new Font("Verdana", Font.PLAIN, scaledSize(8.0));

   //
   // Strings

   /**
    * The system's line separator */
   public final static String LINE_SEP = System.lineSeparator();

   //
   //--private--/
   //

   private static int scaledSize(double size) {
      return ScreenParams.scaledSize(size);
   }
}

@@ -489,16 +489,23 @@
   * The 
+scaled 
 height f
@@ -511,25 +511,16 @@
 for bars
- (scaled)
  */%0A   p
@@ -850,13 +850,8 @@
 ith 
-dark 
 gray
@@ -895,16 +895,21 @@
 er GRAY_
+LINE_
 BORDER =
@@ -1423,32 +1423,38 @@
 ight gray at
+%0A    *
  the top
  */%0A   publi
@@ -1433,32 +1433,36 @@
 at%0A    * the top
+%0A   
  */%0A   public fi
@@ -1488,16 +1488,27 @@
 ATTE_TOP
+_LIGHT_GRAY
  = new M
@@ -1713,32 +1713,32 @@
 der(1, 0, 0, 0,%0A
+
          Constan
@@ -1752,224 +1752,8 @@
 );%0A%0A
-   /**%0A    * The %3Ccode%3EMatteBorder%3C/code%3E with inset of 1 pt in light gray at the top%0A    * and bottom */%0A   public final static Border MATTE_TOP_BOTTOM = new MatteBorder(1, 0, 1, 0,%0A         Constants.LIGHT_GRAY);%0A%0A
    /

rename some constants