View Javadoc
1   package org.woehlke.simulation.evolution.model;
2   
3   import java.awt.*;
4   
5   /**
6    * Created with IntelliJ IDEA.
7    * User: tw
8    * Date: 25.08.13
9    * Time: 12:40
10   * To change this template use File | Settings | File Templates.
11   */
12  public enum LifeCycleStatus {
13  
14      YOUNG(Color.BLUE),
15      YOUNG_AND_FAT(Color.YELLOW),
16      FULL_AGE(Color.RED),
17      HUNGRY(Color.LIGHT_GRAY),
18      OLD(Color.DARK_GRAY),
19      DEAD(Color.BLACK);
20  
21      private Color color;
22  
23      private LifeCycleStatus(Color color){
24          this.color=color;
25      }
26  
27      public Color getColor(){
28          return color;
29      }
30  }