View Javadoc

1   // %1126721451026:hoplugins.trainingExperience.ui.bar%
2   package hoplugins.trainingExperience.ui.bar;
3   
4   import java.awt.Color;
5   
6   
7   /***
8    * Color Class for StateBar
9    *
10   * @author Volker
11   */
12  public class ColorModus {
13      //~ Instance fields ----------------------------------------------------------------------------
14  
15      /*** Dark Color */
16      public Color dunkel;
17  
18      /*** Light Color */
19      public Color hell;
20  
21      /*** Normal Color */
22      public Color mittel;
23  
24      //~ Constructors -------------------------------------------------------------------------------
25  
26      /***
27       * Creates a new ColorModus object.
28       *
29       * @param color The Base color for the bar
30       */
31      public ColorModus(Color color) {
32          hell = color.brighter();
33          mittel = color;
34          dunkel = color.darker();
35      }
36  }