Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Static 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.

Public Member Functions

 DataContentViewerMedia ()
 
void setNode (Node selectedNode)
 
String getTitle ()
 
String getToolTip ()
 
DataContentViewer createInstance ()
 
Component getComponent ()
 
void resetComponent ()
 
boolean isSupported (Node node)
 
int isPreferred (Node node)
 

Private Member Functions

void customizeComponents ()
 
void initComponents ()
 
void showVideoPanel (boolean showVideo)
 
boolean isVideoSupported (AbstractFile file)
 
boolean isImageSupported (AbstractFile file)
 

Static Private Member Functions

static boolean containsExt (String name, Set< String > exts)
 

Private Attributes

AbstractFile lastFile
 
final MediaViewVideoPanel videoPanel
 
final SortedSet< String > videoExtensions
 
final SortedSet< String > imageExtensions
 
final SortedSet< String > videoMimes
 
final SortedSet< String > imageMimes
 
final MediaViewImagePanel imagePanel
 
boolean videoPanelInited
 
boolean imagePanelInited
 

Static Private Attributes

static final Set< String > AUDIO_EXTENSIONS = new TreeSet<>(Arrays.asList(".mp3", ".wav", ".wma"))
 
static final Logger logger = Logger.getLogger(DataContentViewerMedia.class.getName())
 
static final String IMAGE_VIEWER_LAYER = "IMAGE"
 
static final String VIDEO_VIEWER_LAYER = "VIDEO"
 

Detailed Description

Media content viewer for videos, sounds and images.

Definition at line 46 of file DataContentViewerMedia.java.

Constructor & Destructor Documentation

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

Member Function Documentation

static boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.containsExt ( String  name,
Set< String >  exts 
)
staticprivate

Definition at line 280 of file DataContentViewerMedia.java.

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 166 of file DataContentViewerMedia.java.

void org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.customizeComponents ( )
private

Definition at line 85 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 171 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 156 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 161 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 99 of file DataContentViewerMedia.java.

boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isImageSupported ( AbstractFile  file)
private
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 262 of file DataContentViewerMedia.java.

References org::sleuthkit::datamodel::AbstractContent.getName(), org::sleuthkit::datamodel::AbstractFile.isDirNameFlagSet(), 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.

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 234 of file DataContentViewerMedia.java.

References org::sleuthkit::datamodel::AbstractFile.getSize(), and org.sleuthkit.autopsy.corecomponents.MediaViewVideoPanel.isInited().

boolean org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.isVideoSupported ( AbstractFile  file)
private
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 108 of file DataContentViewerMedia.java.

References org::sleuthkit::datamodel::AbstractContent.equals().

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 146 of file DataContentViewerMedia.java.

Member Data Documentation

final Set<String> org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.AUDIO_EXTENSIONS = new TreeSet<>(Arrays.asList(".mp3", ".wav", ".wma"))
staticprivate

Definition at line 48 of file DataContentViewerMedia.java.

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

Definition at line 60 of file DataContentViewerMedia.java.

final SortedSet<String> org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.imageExtensions
private

Definition at line 54 of file DataContentViewerMedia.java.

final SortedSet<String> org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.imageMimes
private

Definition at line 56 of file DataContentViewerMedia.java.

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

Definition at line 57 of file DataContentViewerMedia.java.

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

Definition at line 59 of file DataContentViewerMedia.java.

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

Definition at line 50 of file DataContentViewerMedia.java.

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

Definition at line 49 of file DataContentViewerMedia.java.

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

Definition at line 61 of file DataContentViewerMedia.java.

final SortedSet<String> org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.videoExtensions
private

Definition at line 53 of file DataContentViewerMedia.java.

final SortedSet<String> org.sleuthkit.autopsy.corecomponents.DataContentViewerMedia.videoMimes
private

Definition at line 55 of file DataContentViewerMedia.java.

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

Definition at line 52 of file DataContentViewerMedia.java.

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

Definition at line 58 of file DataContentViewerMedia.java.


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

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.