Added icons for new artifacts to show up in the results tree view and the HTML report.

This commit is contained in:
raman-bt 2013-07-24 18:53:40 -04:00
parent 19026b732f
commit ae3b343c1b
11 changed files with 42 additions and 0 deletions

View File

@ -104,6 +104,14 @@ public class ArtifactTypeNode extends DisplayableItemNode {
return "searchquery.png";
case TSK_METADATA_EXIF:
return "camera-icon-16.png";
case TSK_CONTACT:
return "contact.png";
case TSK_MESSAGE:
return "message.png";
case TSK_CALLLOG:
return "calllog.png";
case TSK_CALENDAR_ENTRY:
return "calendar.png";
}
return "artifact-icon.png";
}

View File

@ -287,6 +287,14 @@ public class BlackboardArtifactNode extends DisplayableItemNode {
return "green-tag-icon-16.png";
case TSK_METADATA_EXIF:
return "camera-icon-16.png";
case TSK_CONTACT:
return "contact.png";
case TSK_MESSAGE:
return "message.png";
case TSK_CALLLOG:
return "calllog.png";
case TSK_CALENDAR_ENTRY:
return "calendar.png";
}
return "artifact-icon.png";
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

View File

@ -561,6 +561,32 @@ public class ReportHTML implements TableReportModule {
FileUtil.copy(in, output);
in.close();
output.close();
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/contact.png");
output = new FileOutputStream(new File(path + File.separator + "Contacts.png"));
FileUtil.copy(in, output);
in.close();
output.close();
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/message.png");
output = new FileOutputStream(new File(path + File.separator + "Messages.png"));
FileUtil.copy(in, output);
in.close();
output.close();
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/calllog.png");
output = new FileOutputStream(new File(path + File.separator + "Call Logs.png"));
FileUtil.copy(in, output);
in.close();
output.close();
in = getClass().getResourceAsStream("/org/sleuthkit/autopsy/report/images/calendar.png");
output = new FileOutputStream(new File(path + File.separator + "Calendar Entries.png"));
FileUtil.copy(in, output);
in.close();
output.close();
} catch (IOException ex) {
logger.log(Level.SEVERE, "Failed to extract images for HTML report.", ex);
} finally {

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B