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

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 

Definition at line 280 of file

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.

A new instance of the viewer

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 166 of file

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

Definition at line 85 of file

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

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

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

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

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

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

nodeNode to check for preference
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

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.

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

Implements org.sleuthkit.autopsy.corecomponentinterfaces.DataContentViewer.

Definition at line 234 of file

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

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

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

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

switch to visible video or image panel

showVideotrue if video panel, false if image panel

Definition at line 146 of file

Member Data Documentation

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

Definition at line 48 of file

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

Definition at line 60 of file

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

Definition at line 54 of file

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

Definition at line 56 of file

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

Definition at line 57 of file

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

Definition at line 59 of file

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

Definition at line 50 of file

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

Definition at line 49 of file

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

Definition at line 61 of file

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

Definition at line 53 of file

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

Definition at line 55 of file

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

Definition at line 52 of file

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

Definition at line 58 of file

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.