package de.tudresden.inf.lat.born.gui.common;

import java.awt.Color;
import java.awt.Font;
import java.awt.image.BufferedImage;

import javax.swing.ImageIcon;

/**
 * This manages the icons.
 * 
 * @author Julian Mendez
 *
 */
public interface BornIcon {

	Color BACKGROUND_COLOR = new Color(0, 102, 153);
	Color FOREGROUND_COLOR = new Color(255, 255, 255);
	Color TEXT_BACKGROUND_COLOR = new Color(255, 255, 240);

	Font TITLE_FONT = new Font("Courier New", Font.BOLD, 13);

	String PATH_BACKGROUND = "images/background.png";

	String PATH_OPEN_FILE = "icons/openfolder.png";
	String PATH_SAVE_FILE = "icons/floppydisk.png";
	String PATH_VIEW_FILE = "icons/magnifyingglass.png";
	String PATH_RUN = "icons/play.png";
	String PATH_REFRESH = "icons/refresh.png";
	String PATH_BACK = "icons/back.png";

	int DEFAULT_ICON_SIZE = 24;

	BufferedImage BACKGROUND = ImageManager.createImage(PATH_BACKGROUND).get();

	ImageIcon OPEN_FILE = ImageManager.createIcon(PATH_OPEN_FILE, DEFAULT_ICON_SIZE).get();
	ImageIcon SAVE_FILE = ImageManager.createIcon(PATH_SAVE_FILE, DEFAULT_ICON_SIZE).get();
	ImageIcon VIEW_FILE = ImageManager.createIcon(PATH_VIEW_FILE, DEFAULT_ICON_SIZE).get();
	ImageIcon RUN = ImageManager.createIcon(PATH_RUN, DEFAULT_ICON_SIZE).get();
	ImageIcon REFRESH = ImageManager.createIcon(PATH_REFRESH, DEFAULT_ICON_SIZE).get();
	ImageIcon BACK = ImageManager.createIcon(PATH_BACK, DEFAULT_ICON_SIZE).get();

}

@@ -170,25 +170,94 @@
 his 
-manages the ic
+interface contains constants for the icons and other images used in the%0A * applicati
 on
-s
 .%0A *
@@ -319,16 +319,41 @@
 Icon %7B%0A%0A
+%09/** Background color */%0A
 %09Color B
@@ -393,16 +393,42 @@
 2, 153);
+%0A%0A%09/** Foreground color */
 %0A%09Color 
@@ -471,16 +471,55 @@
 5, 255);
+%0A%0A%09/** Background color of text area */
 %0A%09Color 
@@ -569,16 +569,35 @@
  240);%0A%0A
+%09/** Title font */%0A
 %09Font TI
@@ -648,16 +648,50 @@
 , 13);%0A%0A
+%09/** Path for background image */%0A
 %09String 
@@ -734,16 +734,48 @@
 .png%22;%0A%0A
+%09/** Path for Open File icon */%0A
 %09String 
@@ -810,24 +810,57 @@
 folder.png%22;
+%0A%0A%09/** Path for Save File icon */
 %0A%09String PAT
@@ -892,24 +892,57 @@
 pydisk.png%22;
+%0A%0A%09/** Path for View File icon */
 %0A%09String PAT
@@ -979,24 +979,51 @@
 gglass.png%22;
+%0A%0A%09/** Path for Run icon */
 %0A%09String PAT
@@ -1043,24 +1043,55 @@
 s/play.png%22;
+%0A%0A%09/** Path for Refresh icon */
 %0A%09String PAT
@@ -1122,16 +1122,47 @@
 sh.png%22;
+%0A%0A%09/** Path for Go Back icon */
 %0A%09String
@@ -1193,16 +1193,42 @@
 .png%22;%0A%0A
+%09/** Default icon size */%0A
 %09int DEF
@@ -1249,16 +1249,41 @@
  = 24;%0A%0A
+%09/** Background image */%0A
 %09Buffere
@@ -1352,16 +1352,39 @@
 get();%0A%0A
+%09/** Open File icon */%0A
 %09ImageIc
@@ -1455,32 +1455,56 @@
 CON_SIZE).get();
+%0A%0A%09/** Save File icon */
 %0A%09ImageIcon SAVE
@@ -1568,32 +1568,56 @@
 CON_SIZE).get();
+%0A%0A%09/** View File icon */
 %0A%09ImageIcon VIEW
@@ -1681,32 +1681,50 @@
 CON_SIZE).get();
+%0A%0A%09/** Run icon */
 %0A%09ImageIcon RUN 
@@ -1776,32 +1776,54 @@
 CON_SIZE).get();
+%0A%0A%09/** Refresh icon */
 %0A%09ImageIcon REFR
@@ -1891,16 +1891,38 @@
 ).get();
+%0A%0A%09/** Go Back icon */
 %0A%09ImageI

Improve Javadoc of icon