Autopsy  3.1
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.FXVideoPanel.MediaPane Class Reference

Inherits BorderPane.

Classes

class  EndOfMediaListener
 
class  NotPlayListener
 
class  PlayListener
 
class  ReadyListener
 
class  TimeListener
 

Public Member Functions

 MediaPane ()
 
void prepareMedia (String mediaUri)
 
void reset ()
 
void setInfoLabelText (final String text)
 
void setFit (final Dimension dims)
 

Private Member Functions

void setProgressActionListeners ()
 
void resetProgress ()
 
MediaPlayer createMediaPlayer (String mediaUri)
 
void updateProgress ()
 
void updateSlider (Duration currentTime)
 
void updateTime (Duration currentTime)
 
void setProgressLabelText (final String text)
 
void setInfoLabelToolTipText (final String text)
 

Private Attributes

MediaPlayer mediaPlayer
 
MediaView mediaView
 
Duration duration
 
HBox mediaTools
 
HBox mediaViewPane
 
VBox controlPanel
 
Slider progressSlider
 
Button pauseButton
 
Button stopButton
 
Label progressLabel
 
Label infoLabel
 
int totalHours
 
int totalMinutes
 
int totalSeconds
 
String durationFormat = "%02d:%02d:%02d/%02d:%02d:%02d "
 
final ReadyListener READY_LISTENER = new ReadyListener()
 
final EndOfMediaListener END_LISTENER = new EndOfMediaListener()
 
final TimeListener TIME_LISTENER = new TimeListener()
 
final NotPlayListener NOT_PLAY_LISTENER = new NotPlayListener()
 
final PlayListener PLAY_LISTENER = new PlayListener()
 

Static Private Attributes

static final String PLAY_TEXT = "►"
 
static final String PAUSE_TEXT = "||"
 
static final String STOP_TEXT = "X"
 

Detailed Description

The JavaFX Component that contains the Media and it's Controls.

Definition at line 317 of file FXVideoPanel.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.MediaPane ( )

Definition at line 373 of file FXVideoPanel.java.

Member Function Documentation

MediaPlayer org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.createMediaPlayer ( String  mediaUri)
private

Construct a MediaPlayer from the given Media URI.

Also adds the necessary listeners to MediaPlayer events.

Parameters
mediaUrithe location of the media.
Returns
a MediaPlayer

Definition at line 556 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.prepareMedia ( String  mediaUri)

Setup the MediaPane for media playback. Run on the JavaFx Thread.

Parameters
mediaUrithe URI of the media

Definition at line 418 of file FXVideoPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.FXVideoPanel.ExtractMedia.done().

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.reset ( )

Reset this MediaPane.

Definition at line 432 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.resetProgress ( )
private

Reset the progress label and slider to zero.

Definition at line 539 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.setFit ( final Dimension  dims)

Set the size of the MediaPane and it's components.

Parameters
dimsthe current dimensions of the DataContentViewer

Definition at line 464 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.setInfoLabelText ( final String  text)

Set the Information Label of this MediaPane.

Parameters
text

Definition at line 449 of file FXVideoPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.FXVideoPanel.ExtractMedia.done().

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.setInfoLabelToolTipText ( final String  text)
private

Definition at line 636 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.setProgressActionListeners ( )
private

Set the action listeners for the pause button and progress slider.

Definition at line 479 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.setProgressLabelText ( final String  text)
private

Update the progress label to show the text.

Parameters
text

Definition at line 627 of file FXVideoPanel.java.

Referenced by org.sleuthkit.autopsy.corecomponents.FXVideoPanel.ExtractMedia.doInBackground(), and org.sleuthkit.autopsy.corecomponents.FXVideoPanel.ExtractMedia.done().

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.updateProgress ( )
private

Update the progress slider and label with the current time of the media.

Definition at line 575 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.updateSlider ( Duration  currentTime)
private

Update the slider with the current time.

Parameters
currentTime

Definition at line 589 of file FXVideoPanel.java.

void org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.updateTime ( Duration  currentTime)
private

Update the progress label with the current time.

Parameters
currentTime

Definition at line 604 of file FXVideoPanel.java.

Member Data Documentation

VBox org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.controlPanel
private

Definition at line 332 of file FXVideoPanel.java.

Duration org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.duration
private

The Duration of the media. *

Definition at line 324 of file FXVideoPanel.java.

String org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.durationFormat = "%02d:%02d:%02d/%02d:%02d:%02d "
private

Definition at line 350 of file FXVideoPanel.java.

final EndOfMediaListener org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.END_LISTENER = new EndOfMediaListener()
private

The EventHandler for MediaPlayer.onEndOfMedia(). *

Definition at line 356 of file FXVideoPanel.java.

Label org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.infoLabel
private

Definition at line 342 of file FXVideoPanel.java.

MediaPlayer org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.mediaPlayer
private

Definition at line 319 of file FXVideoPanel.java.

HBox org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.mediaTools
private

The container for the media controls. *

Definition at line 327 of file FXVideoPanel.java.

MediaView org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.mediaView
private

Definition at line 321 of file FXVideoPanel.java.

HBox org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.mediaViewPane
private

The container for the media video output. *

Definition at line 330 of file FXVideoPanel.java.

final NotPlayListener org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.NOT_PLAY_LISTENER = new NotPlayListener()
private

The EventHandler for MediaPlayer.onPause and MediaPlayer.onStop. *

Definition at line 362 of file FXVideoPanel.java.

final String org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.PAUSE_TEXT = "||"
staticprivate

Definition at line 369 of file FXVideoPanel.java.

Button org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.pauseButton
private

Definition at line 336 of file FXVideoPanel.java.

final PlayListener org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.PLAY_LISTENER = new PlayListener()
private

The EventHandler for MediaPlayer.onPlay. *

Definition at line 365 of file FXVideoPanel.java.

final String org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.PLAY_TEXT = "►"
staticprivate

Definition at line 367 of file FXVideoPanel.java.

Label org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.progressLabel
private

Definition at line 340 of file FXVideoPanel.java.

Slider org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.progressSlider
private

Definition at line 334 of file FXVideoPanel.java.

final ReadyListener org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.READY_LISTENER = new ReadyListener()
private

The EventHandler for MediaPlayer.onReady(). *

Definition at line 353 of file FXVideoPanel.java.

final String org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.STOP_TEXT = "X"
staticprivate

Definition at line 371 of file FXVideoPanel.java.

Button org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.stopButton
private

Definition at line 338 of file FXVideoPanel.java.

final TimeListener org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.TIME_LISTENER = new TimeListener()
private

The EventHandler for the CurrentTime property of the MediaPlayer. *

Definition at line 359 of file FXVideoPanel.java.

int org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.totalHours
private

Definition at line 344 of file FXVideoPanel.java.

int org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.totalMinutes
private

Definition at line 346 of file FXVideoPanel.java.

int org.sleuthkit.autopsy.corecomponents.FXVideoPanel.MediaPane.totalSeconds
private

Definition at line 348 of file FXVideoPanel.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.