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

Inherits org.sleuthkit.autopsy.guiutils.GrayableCellRenderer.

Public Member Functions

 DurationCellRenderer ()
 
Component getTableCellRendererComponent (JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
 
void grayCellIfTableNotEnabled (JTable table, boolean isSelected)
 

Static Public Member Functions

static String longToDurationString (long duration)
 

Static Private Attributes

static final long serialVersionUID = 1L
 

Detailed Description

A JTable cell renderer that renders a duration represented as a long as a string with days, hours, minutes, and seconds components. It center-aligns cell content and grays out the cell if the table is disabled.

Definition at line 31 of file DurationCellRenderer.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.guiutils.DurationCellRenderer.DurationCellRenderer ( )

Definition at line 35 of file DurationCellRenderer.java.

Member Function Documentation

Component org.sleuthkit.autopsy.guiutils.DurationCellRenderer.getTableCellRendererComponent ( JTable  table,
Object  value,
boolean  isSelected,
boolean  hasFocus,
int  row,
int  column 
)
void org.sleuthkit.autopsy.guiutils.GrayableCellRenderer.grayCellIfTableNotEnabled ( JTable  table,
boolean  isSelected 
)
inherited
static String org.sleuthkit.autopsy.guiutils.DurationCellRenderer.longToDurationString ( long  duration)
static

Convert a duration represented by a long to a human readable string with with days, hours, minutes, and seconds components.

Parameters
duration- the representation of the duration in long form
Returns
- the representation of the duration in String form.

Definition at line 58 of file DurationCellRenderer.java.

Referenced by org.sleuthkit.autopsy.guiutils.DurationCellRenderer.getTableCellRendererComponent().

Member Data Documentation

final long org.sleuthkit.autopsy.guiutils.DurationCellRenderer.serialVersionUID = 1L
staticprivate

Definition at line 33 of file DurationCellRenderer.java.


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

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