19 package org.sleuthkit.autopsy.datamodel;
21 import com.google.common.collect.ImmutableList;
22 import com.google.common.collect.Maps;
23 import java.util.Arrays;
25 import javafx.scene.Node;
26 import javafx.scene.image.Image;
27 import javafx.scene.image.ImageView;
28 import javafx.scene.paint.Color;
29 import org.openide.util.NbBundle;
35 "Category.one=CAT-1: Child Exploitation (Illegal)",
36 "Category.two=CAT-2: Child Exploitation (Non-Illegal/Age Difficult)",
37 "Category.three=CAT-3: CGI/Animation (Child Exploitive)",
38 "Category.four=CAT-4: Exemplar/Comparison (Internal Use Only)",
39 "Category.five=CAT-5: Non-pertinent",
40 "Category.zero=CAT-0: Uncategorized"})
48 ONE(Color.RED, 1, Bundle.Category_one(),
"cat1.png"),
49 TWO(Color.ORANGE, 2, Bundle.Category_two(),
"cat2.png"),
50 THREE(Color.YELLOW, 3, Bundle.Category_three(),
"cat3.png"),
51 FOUR(Color.BISQUE, 4, Bundle.Category_four(),
"cat4.png"),
52 FIVE(Color.GREEN, 5, Bundle.Category_five(),
"cat5.png"),
53 ZERO(Color.LIGHTGREY, 0, Bundle.Category_zero(),
"cat0.png");
56 private static final Map<String, DhsImageCategory> nameMap
66 this.displayName = name;
68 this.icon =
new Image(getClass().getResourceAsStream(
"/org/sleuthkit/autopsy/images/" + filename));
72 return ImmutableList.of(FIVE, FOUR, THREE, TWO, ONE);
76 return nameMap.get(displayName);
80 return nameMap.containsKey(tName);
84 return nameMap.containsKey(tName) ==
false;
105 return new ImageView(icon);
static boolean isCategoryName(String tName)
DhsImageCategory(Color color, int id, String name, String filename)
static ImmutableList< DhsImageCategory > getNonZeroCategories()
static DhsImageCategory fromDisplayName(String displayName)
static boolean isNotCategoryName(String tName)