Autopsy  4.5.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia Class Reference

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"
 

Detailed Description

Media content viewer for videos, sounds and images.

Definition at line 41 of file DataContentViewerMedia.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.DataContentViewerMedia ( )

Member Function Documentation

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.

Returns
A new instance of the viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 153 of file DataContentViewerMedia.java.

void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.customizeComponents ( )
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.

void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.initComponents ( )
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.

boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isImageSupported ( AbstractFile  file)
private

Is the given file an image that we can display?

Parameters
file
Returns
True if an image file that can be displayed

Definition at line 190 of file DataContentViewerMedia.java.

References 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.

Parameters
nodeNode to check for preference
Returns
an int (0-10) higher return means the viewer has higher priority 0 means not supported 1 to 2 means the module will display all file types (such as the hex viewer) 3-10 are prioritized by Content viewer developer. Modules that operate on very few file types should be towards 10.

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 221 of file DataContentViewerMedia.java.

References org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isSupported().

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.

Parameters
nodeNode to check for support
Returns
True if the node can be displayed / processed, else false

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 199 of file DataContentViewerMedia.java.

boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isVideoSupported ( AbstractFile  file)
private

Is the given file a video we can display?

Parameters
file
Returns
True if a video file that can be displayed

Definition at line 176 of file DataContentViewerMedia.java.

References org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isSupported().

void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.resetComponent ( )
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.autopsy.corecomponents.MediaViewVideoPanel.isSupported(), and org.sleuthkit.autopsy.corecomponents.MediaViewImagePanel.isSupported().

void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.showVideoPanel ( boolean  showVideo)
private

switch to visible video or image panel

Parameters
showVideotrue if video panel, false if image panel

Definition at line 133 of file DataContentViewerMedia.java.

Member Data Documentation

final String org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.IMAGE_VIEWER_LAYER = "IMAGE"
staticprivate

Definition at line 51 of file DataContentViewerMedia.java.

final MediaViewImagePanel org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.imagePanel
private

Definition at line 48 of file DataContentViewerMedia.java.

final boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.imagePanelInited
private

Definition at line 49 of file DataContentViewerMedia.java.

AbstractFile org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.lastFile
private

Definition at line 44 of file DataContentViewerMedia.java.

final Logger org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.logger = Logger.getLogger(DataContentViewerMedia.class.getName())
staticprivate

Definition at line 43 of file DataContentViewerMedia.java.

final String org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.VIDEO_VIEWER_LAYER = "VIDEO"
staticprivate

Definition at line 52 of file DataContentViewerMedia.java.

final MediaViewVideoPanel org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.videoPanel
private

Definition at line 46 of file DataContentViewerMedia.java.

final boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.videoPanelInited
private

Definition at line 47 of file DataContentViewerMedia.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2016 Basis Technology. Generated on: Tue Feb 20 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.