View Javadoc

1   /**
2    * This program is free software: you can redistribute it and/or modify
3    * it under the terms of the GNU General Public License as published by
4    * the Free Software Foundation, version 3.
5    *
6    * This program is distributed in the hope that it will be useful,
7    * but WITHOUT ANY WARRANTY; without even the implied warranty of
8    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9    * GNU General Public License for more details.
10   *
11   * You should have received a copy of the GNU General Public License
12   * along with this program. If not, see <http://www.gnu.org/licenses/>.
13   */
14  
15  package net.curre.prefcount.gui.theme.skin;
16  
17  import java.awt.*;
18  
19  /**
20   * An object of this class represents the prefcount default skin -
21   * the Substance's default Aqua skin.
22   * <p/>
23   * Created date: Jun 13, 2007
24   *
25   * @author Yevgeny Nyden
26   */
27  public class DefaultSkin implements PrefSkin {
28  
29    /** Resource key for the skin name and the skins unique ID. */
30    public static final String NAME_KEY = "pref.skinMenu.default";
31  
32    /** Main background color. */
33    public static final Color COLOR_BACKGROUND_MAIN = new Color(238, 238, 238);
34  
35    /** Board background paint. */
36    public static final Color PAINT_BACKGROUND_BOARD = new Color(252, 252, 252);
37  
38    /** Color for players names. */
39    private static final Color COLOR_PLAYER_NAME = new Color(10, 10, 10);
40  
41    /** Font for players names. */
42    private static final Font FONT_PLAYER_NAME = new Font("Arial Black", Font.BOLD, 16);
43  
44    /** Stroke for players names. */
45    private static final Stroke STROKE_PLAYER_NAME = new BasicStroke(2);
46  
47    /** Color for players scores. */
48    private static final Color COLOR_PLAYER_SCORE = new Color(30, 30, 30);
49  
50    /** Font for players scores. */
51    private static final Font FONT_PLAYER_SCORE = new Font("SansSerif", Font.ITALIC, 16);
52  
53    /** Stroke for players scores. */
54    private static final Stroke STROKE_PLAYER_SCORE = new BasicStroke(2);
55  
56    /** Color for players totals (scores). */
57    private static final Color COLOR_PLAYER_TOTALS = new Color(0, 0, 0);
58  
59    /** Font for players totals (scores). */
60    private static final Font FONT_PLAYER_TOTALS = new Font("SansSerif", Font.BOLD, 16);
61  
62    /** Stroke for players totals (scores). */
63    private static final Stroke STROKE_PLAYER_TOTALS = new BasicStroke(2);
64  
65    /** Color for the board lines. */
66    private static final Color COLOR_BOARD_LINES = new Color(200, 200, 200);
67  
68    /** Color for the board lines. */
69    private static final Stroke STROKE_BOARD_LINES = new BasicStroke(1);
70  
71    /**
72     * Returns null since the default skin does not
73     * have a corresponding class.
74     *
75     * @return null.
76     */
77    public String getSubstanceSkinClassName() {
78      return null;
79    }
80  
81    /** {@inheritDoc} */
82    public String getNameResourceKey() {
83      return NAME_KEY;
84    }
85  
86    /** {@inheritDoc} */
87    public Color getMainBackgroundColor() {
88      return COLOR_BACKGROUND_MAIN;
89    }
90  
91    /** {@inheritDoc} */
92    public Paint getBoardBackgroundPaint() {
93      return PAINT_BACKGROUND_BOARD;
94    }
95  
96    /** {@inheritDoc} */
97    public Color getPlayerNameColor() {
98      return COLOR_PLAYER_NAME;
99    }
100 
101   /** {@inheritDoc} */
102   public Font getPlayerNameFont() {
103     return FONT_PLAYER_NAME;
104   }
105 
106   /** {@inheritDoc} */
107   public Stroke getPlayerNameStroke() {
108     return STROKE_PLAYER_NAME;
109   }
110 
111   /** {@inheritDoc} */
112   public Color getPlayerScoreColor() {
113     return COLOR_PLAYER_SCORE;
114   }
115 
116   /** {@inheritDoc} */
117   public Font getPlayerScoreFont() {
118     return FONT_PLAYER_SCORE;
119   }
120 
121   /** {@inheritDoc} */
122   public Stroke getPlayerScoreStroke() {
123     return STROKE_PLAYER_SCORE;
124   }
125 
126   /** {@inheritDoc} */
127   public Color getPlayerTotalsColor() {
128     return COLOR_PLAYER_TOTALS;
129   }
130 
131   /** {@inheritDoc} */
132   public Font getPlayerTotalsFont() {
133     return FONT_PLAYER_TOTALS;
134   }
135 
136   /** {@inheritDoc} */
137   public Stroke getPlayerTotalsStroke() {
138     return STROKE_PLAYER_TOTALS;
139   }
140 
141   /** {@inheritDoc} */
142   public Color getBoardLineColor() {
143     return COLOR_BOARD_LINES;
144   }
145 
146   /** {@inheritDoc} */
147   public Stroke getBoardLineStroke() {
148     return STROKE_BOARD_LINES;
149   }
150 
151 }