JavaFX/Classes/Category.java

27 lines
772 B
Java
Raw Normal View History

package Classes;
public enum Category {
2017-11-19 13:44:40 +00:00
// business, entertainment, gaming, general, healthAndMedical, music, politics, scienceAndNature, sport, technology, all
all("all", "black"),
business("business", "red"),
entertainment("entertainment", "skyblue"),
gaming("gaming", "green"),
health("health", "yellow"),
music("music", "purple"),
sport("sport", "brown"),
science("science", "#f14405"),
nature("nature", "#16c668"),
economics("economics", "#d1991b"),
politics("politics", "#6825f4"),
technology("technology", "#1e7ebe");
protected String color;
protected String label;
Category(String label, String color){ this.label = label; this.color = color; }
public String getLabel(){ return this.label; }
public String getColor(){ return this.color; }
}