Autopsy
4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.discovery.ui.AbstractArtifactDetailsPanel, and org.sleuthkit.autopsy.contentviewers.artifactviewers.ArtifactContentViewer.
Public Member Functions | |
GeneralPurposeArtifactViewer () | |
Component | getComponent () |
Component | getComponent () |
boolean | isSupported (BlackboardArtifact artifact) |
void | setArtifact (BlackboardArtifact artifact) |
Private Member Functions | |
boolean | addDates (String label, List< BlackboardAttribute > attrList, boolean headerExists) |
JTextPane | addDetailsHeader (int artifactTypeId) |
JTextPane | addHeader (String headerString) |
JLabel | addKeyAtCol (String keyString) |
void | addLineEndGlue () |
JTextPane | addNameValueRow (String keyString, String valueString) |
void | addOrderings () |
void | addPageEndGlue () |
void | addToPanel (Component comp) |
JTextPane | addValueAtCol (String valueString) |
void | initComponents () |
void | resetComponent () |
void | updateView (BlackboardArtifact artifact, Map< Integer, List< BlackboardAttribute >> attributeMap, String dataSourceName, String hostName, String sourceFilePath) |
void | valueLabelMouseClicked (java.awt.event.MouseEvent evt, JTextPane valueLabel) |
Private Attributes | |
final javax.swing.JPanel | detailsPanel = new javax.swing.JPanel() |
javax.swing.JScrollPane | detailsScrollPane |
final GridBagConstraints | gridBagConstraints = new GridBagConstraints() |
final GridBagLayout | gridBagLayout = new GridBagLayout() |
final Map< Integer, Integer[]> | orderingMap = new HashMap<>() |
Static Private Attributes | |
static final Integer[] | DEFAULT_ORDERING |
static final Insets | FIRST_HEADER_INSETS = ZERO_INSETS |
static final double | GLUE_WEIGHT_X = 1.0 |
static final Insets | HEADER_INSETS = new Insets(ContentViewerDefaults.getSectionSpacing(), 0, ContentViewerDefaults.getLineSpacing(), 0) |
static final Insets | KEY_COLUMN_INSETS = new Insets(0, ContentViewerDefaults.getSectionIndent(), ContentViewerDefaults.getLineSpacing(), 0) |
static final int | LABEL_COLUMN = 0 |
static final int | LABEL_WIDTH = 1 |
static final Logger | logger = Logger.getLogger(GeneralPurposeArtifactViewer.class.getName()) |
static final int | MAX_COLS = 4 |
static final long | serialVersionUID = 1L |
static final double | TEXT_WEIGHT_X = 0.0 |
static final List< Integer > | TYPES_WITH_DATE_SECTION = Arrays.asList(new Integer[]{BlackboardArtifact.ARTIFACT_TYPE.TSK_WEB_COOKIE.getTypeID()}) |
static final int | VALUE_COLUMN = 1 |
static final Insets | VALUE_COLUMN_INSETS = new Insets(0, ContentViewerDefaults.getColumnSpacing(), ContentViewerDefaults.getLineSpacing(), 0) |
static final int | VALUE_WIDTH = 2 |
static final Insets | ZERO_INSETS = new java.awt.Insets(0, 0, 0, 0) |
Panel to display the details for an Artifact.
Definition at line 62 of file GeneralPurposeArtifactViewer.java.
org.sleuthkit.autopsy.contentviewers.artifactviewers.GeneralPurposeArtifactViewer.GeneralPurposeArtifactViewer | ( | ) |
Creates new form GeneralPurposeArtifactViewer.
Definition at line 99 of file GeneralPurposeArtifactViewer.java.
References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getPanelInsets().
|
private |
Private helper method to add all dates in a given attribute list.
label | Specific String to use in place of attributes display name. |
attrList | List of attributes to add dates for. |
headerExists | If the "Dates" header has already been displayed. |
Definition at line 344 of file GeneralPurposeArtifactViewer.java.
|
private |
Helper method to add an artifact specific details header.
artifactTypeId | ID of artifact type to add header for. |
Definition at line 373 of file GeneralPurposeArtifactViewer.java.
|
private |
Adds a new heading to the panel.
headerString | Heading string to display. |
Definition at line 401 of file GeneralPurposeArtifactViewer.java.
References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getHeaderFont().
|
private |
Adds a label/key to the panel.
keyString | Key name to display. |
Definition at line 480 of file GeneralPurposeArtifactViewer.java.
|
private |
Adds a filler/glue at the end of the line to keep the other columns aligned, in case the panel is resized.
Definition at line 448 of file GeneralPurposeArtifactViewer.java.
|
private |
Add a key value row to the specified panel with the specified layout and constraints.
keyString | Key name to display. |
valueString | Value string to display. |
Definition at line 439 of file GeneralPurposeArtifactViewer.java.
|
private |
Private helper method to add the orderings used for each artifact type to the map for lookup.
Definition at line 111 of file GeneralPurposeArtifactViewer.java.
|
private |
Adds a filler/glue at the bottom of the panel to keep the data rows aligned, in case the panel is resized.
Definition at line 465 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 495 of file GeneralPurposeArtifactViewer.java.
|
private |
Adds a value string to the panel at specified column.
valueString | Value string to display. |
Definition at line 507 of file GeneralPurposeArtifactViewer.java.
|
inherited |
Definition at line 35 of file AbstractArtifactDetailsPanel.java.
|
inherited |
Returns the panel.
Implemented in org.sleuthkit.autopsy.contentviewers.artifactviewers.CallLogArtifactViewer, org.sleuthkit.autopsy.contentviewers.artifactviewers.MessageArtifactViewer, org.sleuthkit.autopsy.contentviewers.artifactviewers.DefaultTableArtifactContentViewer, and org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.
Referenced by org.sleuthkit.autopsy.corecomponents.DataArtifactContentViewer.updateView().
|
private |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
Definition at line 231 of file GeneralPurposeArtifactViewer.java.
boolean org.sleuthkit.autopsy.contentviewers.artifactviewers.GeneralPurposeArtifactViewer.isSupported | ( | BlackboardArtifact | artifact | ) |
Checks whether the given artifact is supported by the viewer.
artifact | Artifact to check. |
Implements org.sleuthkit.autopsy.contentviewers.artifactviewers.ArtifactContentViewer.
Definition at line 205 of file GeneralPurposeArtifactViewer.java.
|
private |
Reset the panel so that it is empty.
Definition at line 190 of file GeneralPurposeArtifactViewer.java.
void org.sleuthkit.autopsy.contentviewers.artifactviewers.GeneralPurposeArtifactViewer.setArtifact | ( | BlackboardArtifact | artifact | ) |
Called to display the contents of the given artifact.
artifact | the artifact to display. |
Implements org.sleuthkit.autopsy.contentviewers.artifactviewers.ArtifactContentViewer.
Definition at line 152 of file GeneralPurposeArtifactViewer.java.
References org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
|
private |
Update the view to reflect the current artifact's details.
artifact | The artifact being displayed. |
attributeMap | The map of attributes that exist for the artifact. |
dataSourceName | The name of the datasource that caused the creation of the artifact. |
hostName | The host name. |
sourceFilePath | The path of the file that caused the creation of the artifact. |
Definition at line 270 of file GeneralPurposeArtifactViewer.java.
References org.sleuthkit.autopsy.coreutils.TimeZoneUtils.getFormattedTime().
|
private |
Event handler for mouse click event. Attaches a 'Copy' menu item to right click.
evt | Event to check. |
valueLabel | Label to attach the menu item to. |
Definition at line 547 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 81 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 93 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 564 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 70 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 75 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 91 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 90 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 71 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 73 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 77 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 80 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 65 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 67 of file GeneralPurposeArtifactViewer.java.
|
private |
Definition at line 92 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 64 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 76 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 89 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 78 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 72 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 79 of file GeneralPurposeArtifactViewer.java.
|
staticprivate |
Definition at line 68 of file GeneralPurposeArtifactViewer.java.
Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.