Autopsy  4.19.3
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 char getUnitSeperator ()
 
static String longToDurationString (long duration)
 

Static Private Attributes

static final long serialVersionUID = 1L
 
static final char UNIT_SEPARATOR_CHAR = ':'
 

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 30 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 
)
static char org.sleuthkit.autopsy.guiutils.DurationCellRenderer.getUnitSeperator ( )
static
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 60 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 32 of file DurationCellRenderer.java.

final char org.sleuthkit.autopsy.guiutils.DurationCellRenderer.UNIT_SEPARATOR_CHAR = ':'
staticprivate

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

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