Autopsy  4.21.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 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

Constructor & Destructor Documentation

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

Definition at line 35 of file

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 ( )
void org.sleuthkit.autopsy.guiutils.GrayableCellRenderer.grayCellIfTableNotEnabled ( JTable  table,
boolean  isSelected 
static String org.sleuthkit.autopsy.guiutils.DurationCellRenderer.longToDurationString ( long  duration)

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

duration- The representation of the duration in long form.
- The representation of the duration in String form.

Definition at line 60 of file

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

Member Data Documentation

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

Definition at line 32 of file

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

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.