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

Static Public Member Functions

static int getColumnSpacing ()
 
static Font getFont ()
 
static Font getHeaderFont ()
 
static Integer getLineSpacing ()
 
static Font getMessageFont ()
 
static Font getMonospacedFont ()
 
static Color getPanelBackground ()
 
static Insets getPanelInsets ()
 
static Double getPtToPx ()
 
static Integer getSectionIndent ()
 
static Integer getSectionSpacing ()
 
static Font getSubHeaderFont ()
 

Static Private Attributes

static final Color DEFAULT_BACKGROUND = UIManager.getColor("Panel.background")
 
static final int DEFAULT_COLUMN_SPACING = (int) Math.round((double) DEFAULT_FONT_PX / 3)
 
static final Font DEFAULT_FONT = UIManager.getDefaults().getFont("Label.font")
 
static final int DEFAULT_FONT_PX = (int) Math.round(DEFAULT_FONT.getSize() * PT_TO_PX)
 
static final int DEFAULT_INDENT = DEFAULT_FONT_PX
 
static final int DEFAULT_LINE_SPACING = (int) Math.round((double) DEFAULT_FONT_PX / 5)
 
static final Insets DEFAULT_PANEL_INSETS = UIManager.getDefaults().getInsets("TextPane.margin")
 
static final int DEFAULT_SECTION_SPACING = DEFAULT_FONT_PX
 
static final Font HEADER_FONT = DEFAULT_FONT.deriveFont(Font.BOLD, DEFAULT_FONT.getSize() + 2)
 
static final Font MESSAGE_FONT = DEFAULT_FONT.deriveFont(Font.ITALIC)
 
static final Font MONOSPACED_FONT = new Font(Font.MONOSPACED, Font.PLAIN, DEFAULT_FONT.getSize())
 
static final Double PT_TO_PX = Toolkit.getDefaultToolkit().getScreenResolution() / 72.0
 
static final Font SUB_HEADER_FONT = DEFAULT_FONT.deriveFont(Font.BOLD)
 

Detailed Description

Default values for layout of content values.

Definition at line 30 of file ContentViewerDefaults.java.

Member Function Documentation

static int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getColumnSpacing ( )
static

Returns the horizontal spacing between columns in a table in pixels.

Returns
The horizontal spacing between columns in a table in pixels.

Definition at line 63 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_COLUMN_SPACING.

Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.showPersona().

static Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getFont ( )
static

Returns the default font to be used.

Returns
the default font to be used.

Definition at line 72 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_FONT.

Referenced by org.sleuthkit.autopsy.corecomponents.AutoWrappingJTextPane.setText().

static Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getHeaderFont ( )
static
static Integer org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getLineSpacing ( )
static
static Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getMessageFont ( )
static

Returns the font to be displayed for messages.

Returns
The font to be displayed for messages.

Definition at line 81 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.MESSAGE_FONT.

Referenced by org.sleuthkit.autopsy.contentviewers.artifactviewers.ContactArtifactViewer.initiatePersonasSearch().

static Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getMonospacedFont ( )
static

Returns the font to be used for normal monospace.

Returns
The font to be used for normal monospace.

Definition at line 108 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.MONOSPACED_FONT.

static Color org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getPanelBackground ( )
static
static Insets org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getPanelInsets ( )
static
static Double org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getPtToPx ( )
static

Returns the ratio of point size to pixel size for the user's screen resolution.

Returns
The ratio of point size to pixel size for the user's screen resolution.

Definition at line 164 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.PT_TO_PX.

Referenced by org.sleuthkit.autopsy.contentviewers.layout.ContentViewerHtmlStyles.pxToPt().

static Integer org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getSectionIndent ( )
static
static Integer org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getSectionSpacing ( )
static
static Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.getSubHeaderFont ( )
static

Returns the font to be displayed for sub headers.

Returns
The font to be displayed for sub headers.

Definition at line 99 of file ContentViewerDefaults.java.

References org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.SUB_HEADER_FONT.

Member Data Documentation

final Color org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_BACKGROUND = UIManager.getColor("Panel.background")
staticprivate
final int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_COLUMN_SPACING = (int) Math.round((double) DEFAULT_FONT_PX / 3)
staticprivate
final Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_FONT = UIManager.getDefaults().getFont("Label.font")
staticprivate
final int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_FONT_PX = (int) Math.round(DEFAULT_FONT.getSize() * PT_TO_PX)
staticprivate

Definition at line 37 of file ContentViewerDefaults.java.

final int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_INDENT = DEFAULT_FONT_PX
staticprivate
final int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_LINE_SPACING = (int) Math.round((double) DEFAULT_FONT_PX / 5)
staticprivate
final Insets org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_PANEL_INSETS = UIManager.getDefaults().getInsets("TextPane.margin")
staticprivate
final int org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.DEFAULT_SECTION_SPACING = DEFAULT_FONT_PX
staticprivate
final Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.HEADER_FONT = DEFAULT_FONT.deriveFont(Font.BOLD, DEFAULT_FONT.getSize() + 2)
staticprivate
final Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.MESSAGE_FONT = DEFAULT_FONT.deriveFont(Font.ITALIC)
staticprivate
final Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.MONOSPACED_FONT = new Font(Font.MONOSPACED, Font.PLAIN, DEFAULT_FONT.getSize())
staticprivate
final Double org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.PT_TO_PX = Toolkit.getDefaultToolkit().getScreenResolution() / 72.0
staticprivate
final Font org.sleuthkit.autopsy.contentviewers.layout.ContentViewerDefaults.SUB_HEADER_FONT = DEFAULT_FONT.deriveFont(Font.BOLD)
staticprivate

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

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