Autopsy
4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits JPanel, and org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Classes | |
interface | MediaViewPanel |
Public Member Functions | |
DataContentViewerMedia () | |
DataContentViewer | createInstance () |
Component | getComponent () |
String | getTitle () |
String | getToolTip () |
int | isPreferred (Node node) |
boolean | isSupported (Node node) |
void | resetComponent () |
void | setNode (Node selectedNode) |
Private Member Functions | |
void | customizeComponents () |
void | initComponents () |
boolean | isImageSupported (AbstractFile file) |
boolean | isVideoSupported (AbstractFile file) |
void | showVideoPanel (boolean showVideo) |
Private Attributes | |
final MediaViewImagePanel | imagePanel |
final boolean | imagePanelInited |
AbstractFile | lastFile |
final MediaViewVideoPanel | videoPanel |
final boolean | videoPanelInited |
Static Private Attributes | |
static final String | IMAGE_VIEWER_LAYER = "IMAGE" |
static final Logger | logger = Logger.getLogger(DataContentViewerMedia.class.getName()) |
static final String | VIDEO_VIEWER_LAYER = "VIDEO" |
Media content viewer for videos, sounds and images.
Definition at line 41 of file DataContentViewerMedia.java.
org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.DataContentViewerMedia | ( | ) |
Creates new form DataContentViewerVideo
Definition at line 57 of file DataContentViewerMedia.java.
References org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.createVideoPanel(), org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isInited(), and org.sleuthkit.autopsy.corecomponents.MediaViewImagePanel.isInited().
DataContentViewer org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.createInstance | ( | ) |
Create and return a new instance of your viewer. The reason that this is needed is because the specific viewer modules will be found via NetBeans Lookup and the type will only be DataContentViewer. This method is used to get an instance of your specific type.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 153 of file DataContentViewerMedia.java.
|
private |
Definition at line 72 of file DataContentViewerMedia.java.
Component org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.getComponent | ( | ) |
Return the Swing Component to display. Implementations of this method that extend JPanel and do a 'return this;'. Otherwise return an internal instance of the JPanel.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 158 of file DataContentViewerMedia.java.
String org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.getTitle | ( | ) |
Returns the title of this viewer to display in the tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 143 of file DataContentViewerMedia.java.
String org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.getToolTip | ( | ) |
Returns a short description of this viewer to use as a tool tip for its tab.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 148 of file DataContentViewerMedia.java.
|
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 86 of file DataContentViewerMedia.java.
|
private |
Is the given file an image that we can display?
file |
Definition at line 190 of file DataContentViewerMedia.java.
References org::sleuthkit::datamodel::AbstractFile.getSize(), and org.sleuthkit.autopsy.corecomponents.MediaViewImagePanel.isSupported().
int org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isPreferred | ( | Node | node | ) |
Checks whether the given viewer is preferred for the Node. This is a bit subjective, but the idea is that Autopsy wants to display the most relevant tab. The more generic the viewer, the lower the return value should be. This will only be called on viewers that support the given node.
node | Node to check for preference |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 221 of file DataContentViewerMedia.java.
References org::sleuthkit::datamodel::AbstractFile.isDirNameFlagSet(), org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isSupported(), and org::sleuthkit::datamodel::TskData::TSK_FS_NAME_FLAG_ENUM.UNALLOC.
boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isSupported | ( | Node | node | ) |
Checks whether the given node is supported by the viewer. This will be used to enable or disable the tab for the viewer.
node | Node to check for support |
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 199 of file DataContentViewerMedia.java.
References org::sleuthkit::datamodel::AbstractFile.getSize().
|
private |
Is the given file a video we can display?
file |
Definition at line 176 of file DataContentViewerMedia.java.
References org::sleuthkit::datamodel::AbstractFile.getSize(), and org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isSupported().
void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.resetComponent | ( | ) |
Resets the contents of the viewer / component.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 163 of file DataContentViewerMedia.java.
References org.sleuthkit.autopsy.corecomponents.MediaViewImagePanel.reset().
void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.setNode | ( | Node | selectedNode | ) |
Autopsy will call this when this panel is focused with the file that should be analyzed. When called with null, must clear all references to previous nodes.
Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.
Definition at line 95 of file DataContentViewerMedia.java.
References org::sleuthkit::datamodel::AbstractContent.equals(), org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isSupported(), and org.sleuthkit.autopsy.corecomponents.MediaViewImagePanel.isSupported().
|
private |
switch to visible video or image panel
showVideo | true if video panel, false if image panel |
Definition at line 133 of file DataContentViewerMedia.java.
|
staticprivate |
Definition at line 51 of file DataContentViewerMedia.java.
|
private |
Definition at line 48 of file DataContentViewerMedia.java.
|
private |
Definition at line 49 of file DataContentViewerMedia.java.
|
private |
Definition at line 44 of file DataContentViewerMedia.java.
|
staticprivate |
Definition at line 43 of file DataContentViewerMedia.java.
|
staticprivate |
Definition at line 52 of file DataContentViewerMedia.java.
|
private |
Definition at line 46 of file DataContentViewerMedia.java.
|
private |
Definition at line 47 of file DataContentViewerMedia.java.
Copyright © 2012-2016 Basis Technology. Generated on: Mon Apr 24 2017
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.