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;
36 "Category.one=CAT-1: Child Exploitation (Illegal)",
37 "Category.two=CAT-2: Child Exploitation (Non-Illegal/Age Difficult)",
38 "Category.three=CAT-3: CGI/Animation (Child Exploitive)",
39 "Category.four=CAT-4: Exemplar/Comparison (Internal Use Only)",
40 "Category.five=CAT-5: Non-pertinent",
41 "Category.zero=CAT-0: Uncategorized"})
49 ONE(Color.RED, 1, Bundle.Category_one(),
"cat1.png"),
50 TWO(Color.ORANGE, 2, Bundle.Category_two(),
"cat2.png"),
51 THREE(Color.YELLOW, 3, Bundle.Category_three(),
"cat3.png"),
52 FOUR(Color.BISQUE, 4, Bundle.Category_four(),
"cat4.png"),
53 FIVE(Color.GREEN, 5, Bundle.Category_five(),
"cat5.png"),
54 ZERO(Color.LIGHTGREY, 0, Bundle.Category_zero(),
"cat0.png");
57 private static final Map<String, DhsImageCategory> nameMap
67 this.displayName = name;
69 this.icon =
new Image(getClass().getResourceAsStream(
"/org/sleuthkit/autopsy/images/" + filename));
73 return ImmutableList.of(FIVE, FOUR, THREE, TWO, ONE);
77 return nameMap.get(displayName);
81 return nameMap.containsKey(tName);
85 return nameMap.containsKey(tName) ==
false;
106 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)