19 package org.sleuthkit.autopsy.contentviewers.layout;
22 import javax.swing.JTextPane;
23 import javax.swing.text.EditorKit;
24 import javax.swing.text.html.HTMLEditorKit;
25 import javax.swing.text.html.StyleSheet;
54 = String.format(
" .%s { font-family: %s; font-size: %dpt;font-style:italic; margin: 0px; padding: 0px 0px %dpt 0px; } ",
56 + String.format(
" .%s { font-family: %s; font-size: %dpt; font-weight: bold; margin: 0px; padding: 0px 0px %dpt 0px; } ",
58 + String.format(
" .%s { font-family: %s; font-size: %dpt; font-weight: bold; margin: 0px; padding: 0px 0px %dpt 0px; } ",
60 + String.format(
" .%s { font-family: %s; font-size: %dpt; margin: 0px; padding: 0px 0px %dpt 0px; } ",
62 + String.format(
" .%s { font-family: %s; font-size: %dpt; margin: 0px; padding: 0px 0px %dpt 0px; } ",
64 + String.format(
" .%s { padding-left: %dpt } ",
66 + String.format(
" .%s { padding-top: %dpt } ",
68 + String.format(
" .%s { padding-right: %dpt; white-space: nowrap; } ",
71 private static final StyleSheet
STYLE_SHEET =
new StyleSheet();
173 EditorKit editorKit = textPane.getEditorKit();
174 if (editorKit instanceof HTMLEditorKit) {
175 ((HTMLEditorKit) editorKit).setStyleSheet(STYLE_SHEET);
187 textPane.setContentType(
"text/html;charset=UTF-8");
188 HTMLEditorKit kit =
new HTMLEditorKit();
189 textPane.setEditorKit(kit);
190 kit.setStyleSheet(STYLE_SHEET);
static final Font DEFAULT_FONT
static String getSpacedSectionClassName()
static String getSubHeaderClassName()
static Font getSubHeaderFont()
static final String SPACED_SECTION_CLASSNAME
static Integer getLineSpacing()
static final String TEXT_CLASSNAME
static String getTextClassName()
static final Font HEADER_FONT
static Insets getPanelInsets()
static final String SUB_HEADER_CLASSNAME
static void setStyles(JTextPane textPane)
static final String KEY_COLUMN_TD_CLASSNAME
static String getKeyColumnClassName()
static Integer getSectionIndent()
static final Font MESSAGE_FONT
static String getIndentedClassName()
static final String CLASS_PREFIX
static Color getPanelBackground()
static Font getHeaderFont()
static final StyleSheet STYLE_SHEET
static int pxToPt(int px)
static Font getMonospacedFont()
static void setupHtmlJTextPane(JTextPane textPane)
static String getHeaderClassName()
static String getMessageClassName()
static final String HEADER_CLASSNAME
static int getColumnSpacing()
static final String MESSAGE_CLASSNAME
static final String MONOSPACED_CLASSNAME
static final Font SUB_HEADER_FONT
static String getMonospacedClassName()
static Integer getSectionSpacing()
static final String STYLE_SHEET_RULE
static final String INDENTED_CLASSNAME
static Font getMessageFont()
static Double getPtToPx()
static final Font MONOSPACED_FONT