19 package org.sleuthkit.autopsy.datamodel.utils;
21 import org.
sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE;
31 @SuppressWarnings(
"deprecation")
34 if (typeID == ARTIFACT_TYPE.TSK_WEB_BOOKMARK.getTypeID()) {
35 imageFile =
"bookmarks.png";
36 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_COOKIE.getTypeID()) {
37 imageFile =
"cookies.png";
38 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_HISTORY.getTypeID()) {
39 imageFile =
"history.png";
40 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_DOWNLOAD.getTypeID()) {
41 imageFile =
"downloads.png";
42 }
else if (typeID == ARTIFACT_TYPE.TSK_RECENT_OBJECT.getTypeID()) {
43 imageFile =
"recent_docs.png";
44 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_TRACKPOINT.getTypeID()) {
45 imageFile =
"gps_trackpoint.png";
46 }
else if (typeID == ARTIFACT_TYPE.TSK_INSTALLED_PROG.getTypeID()) {
47 imageFile =
"programs.png";
48 }
else if (typeID == ARTIFACT_TYPE.TSK_DEVICE_ATTACHED.getTypeID()) {
49 imageFile =
"usb_devices.png";
50 }
else if (typeID == ARTIFACT_TYPE.TSK_EMAIL_MSG.getTypeID()) {
51 imageFile =
"mail-icon-16.png";
52 }
else if (typeID == ARTIFACT_TYPE.TSK_EXTRACTED_TEXT.getTypeID()) {
53 imageFile =
"text-file.png";
54 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_SEARCH_QUERY.getTypeID()) {
55 imageFile =
"searchquery.png";
56 }
else if (typeID == ARTIFACT_TYPE.TSK_METADATA_EXIF.getTypeID()) {
57 imageFile =
"camera-icon-16.png";
58 }
else if (typeID == ARTIFACT_TYPE.TSK_OS_INFO.getTypeID()) {
59 imageFile =
"computer.png";
60 }
else if (typeID == ARTIFACT_TYPE.TSK_SERVICE_ACCOUNT.getTypeID()) {
61 imageFile =
"account-icon-16.png";
62 }
else if (typeID == ARTIFACT_TYPE.TSK_CONTACT.getTypeID()) {
63 imageFile =
"contact.png";
64 }
else if (typeID == ARTIFACT_TYPE.TSK_MESSAGE.getTypeID()) {
65 imageFile =
"message.png";
66 }
else if (typeID == ARTIFACT_TYPE.TSK_CALLLOG.getTypeID()) {
67 imageFile =
"calllog.png";
68 }
else if (typeID == ARTIFACT_TYPE.TSK_CALENDAR_ENTRY.getTypeID()) {
69 imageFile =
"calendar.png";
70 }
else if (typeID == ARTIFACT_TYPE.TSK_SPEED_DIAL_ENTRY.getTypeID()) {
71 imageFile =
"speeddialentry.png";
72 }
else if (typeID == ARTIFACT_TYPE.TSK_BLUETOOTH_PAIRING.getTypeID()) {
73 imageFile =
"Bluetooth.png";
74 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_BOOKMARK.getTypeID()) {
75 imageFile =
"gpsfav.png";
76 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_LAST_KNOWN_LOCATION.getTypeID()) {
77 imageFile =
"gps-lastlocation.png";
78 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_SEARCH.getTypeID()) {
79 imageFile =
"gps-search.png";
80 }
else if (typeID == ARTIFACT_TYPE.TSK_PROG_RUN.getTypeID()) {
81 imageFile =
"installed.png";
82 }
else if (typeID == ARTIFACT_TYPE.TSK_ENCRYPTION_DETECTED.getTypeID()
83 || typeID == ARTIFACT_TYPE.TSK_ENCRYPTION_SUSPECTED.getTypeID()) {
84 imageFile =
"encrypted-file.png";
85 }
else if (typeID == ARTIFACT_TYPE.TSK_EXT_MISMATCH_DETECTED.getTypeID()) {
86 imageFile =
"mismatch-16.png";
87 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_ROUTE.getTypeID()
88 || typeID == ARTIFACT_TYPE.TSK_GPS_TRACK.getTypeID()) {
89 imageFile =
"gps_trackpoint.png";
90 }
else if (typeID == ARTIFACT_TYPE.TSK_REMOTE_DRIVE.getTypeID()) {
91 imageFile =
"drive_network.png";
92 }
else if (typeID == ARTIFACT_TYPE.TSK_OS_ACCOUNT.getTypeID()) {
93 imageFile =
"os-account.png";
94 }
else if (typeID == ARTIFACT_TYPE.TSK_OBJECT_DETECTED.getTypeID()) {
95 imageFile =
"objects.png";
96 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_FORM_AUTOFILL.getTypeID()) {
97 imageFile =
"web-form.png";
98 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_CACHE.getTypeID()) {
99 imageFile =
"cache.png";
100 }
else if (typeID == ARTIFACT_TYPE.TSK_USER_CONTENT_SUSPECTED.getTypeID()) {
101 imageFile =
"user-content.png";
102 }
else if (typeID == ARTIFACT_TYPE.TSK_METADATA.getTypeID()) {
103 imageFile =
"metadata.png";
104 }
else if (typeID == ARTIFACT_TYPE.TSK_CLIPBOARD_CONTENT.getTypeID()) {
105 imageFile =
"clipboard.png";
106 }
else if (typeID == ARTIFACT_TYPE.TSK_FACE_DETECTED.getTypeID()) {
107 imageFile =
"face.png";
108 }
else if (typeID == ARTIFACT_TYPE.TSK_WIFI_NETWORK.getTypeID()) {
109 imageFile =
"network-wifi.png";
110 }
else if (typeID == ARTIFACT_TYPE.TSK_WIFI_NETWORK_ADAPTER.getTypeID()) {
111 imageFile =
"network-wifi.png";
112 }
else if (typeID == ARTIFACT_TYPE.TSK_SIM_ATTACHED.getTypeID()) {
113 imageFile =
"sim_card.png";
114 }
else if (typeID == ARTIFACT_TYPE.TSK_BLUETOOTH_ADAPTER.getTypeID()) {
115 imageFile =
"Bluetooth.png";
116 }
else if (typeID == ARTIFACT_TYPE.TSK_DEVICE_INFO.getTypeID()) {
117 imageFile =
"devices.png";
118 }
else if (typeID == ARTIFACT_TYPE.TSK_VERIFICATION_FAILED.getTypeID()) {
119 imageFile =
"validationFailed.png";
120 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_ACCOUNT_TYPE.getTypeID()) {
121 imageFile =
"web-account-type.png";
122 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_FORM_ADDRESS.getTypeID()) {
123 imageFile =
"web-form-address.png";
124 }
else if (typeID == ARTIFACT_TYPE.TSK_WEB_CATEGORIZATION.getTypeID()) {
125 imageFile =
"domain-16.png";
126 }
else if (typeID == ARTIFACT_TYPE.TSK_GPS_AREA.getTypeID()) {
127 imageFile =
"gps-area.png";
128 }
else if (typeID == ARTIFACT_TYPE.TSK_YARA_HIT.getTypeID()) {
129 imageFile =
"yara_16.png";
130 }
else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_SEEN.getTypeID()) {
131 imageFile =
"previously-seen.png";
132 }
else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_UNSEEN.getTypeID()) {
133 imageFile =
"previously-unseen.png";
134 }
else if (typeID == ARTIFACT_TYPE.TSK_PREVIOUSLY_NOTABLE.getTypeID()) {
135 imageFile =
"red-circle-exclamation.png";
137 imageFile =
"artifact-icon.png";
139 return "/org/sleuthkit/autopsy/images/" + imageFile;
static String getIconFilePath(int typeID)