public TableColorizingRenderer()

in src/main/java/org/apache/log4j/chainsaw/TableColorizingRenderer.java [92:147]


    public TableColorizingRenderer(RuleColorizer colorizer, ApplicationPreferenceModel applicationPreferenceModel,
                                   EventContainer eventContainer, LogPanelPreferenceModel logPanelPreferenceModel,
                                   boolean colorizeSearch) {
        this.applicationPreferenceModel = applicationPreferenceModel;
        this.logPanelPreferenceModel = logPanelPreferenceModel;
        this.eventContainer = eventContainer;
        this.colorizeSearch = colorizeSearch;
        multiLinePanel.setLayout(new BoxLayout(multiLinePanel, BoxLayout.Y_AXIS));
        generalPanel.setLayout(new BoxLayout(generalPanel, BoxLayout.Y_AXIS));
        levelPanel.setLayout(new BoxLayout(levelPanel, BoxLayout.Y_AXIS));
        maxHeight = Toolkit.getDefaultToolkit().getScreenSize().height;

        iconMap = new HashMap<>();
        try {
            iconMap.putAll(LevelIconFactory.getInstance().getLevelToIconMap());
        } catch (IllegalStateException ise) {
            //ignore
        }

        if (UIManager.get("Table.selectionBackground") != null) {
            borderColor = (Color) UIManager.get("Table.selectionBackground");
        } else {
            borderColor = Color.BLUE;
        }
        //define the 'bold' attributeset
        boldAttributeSet = new SimpleAttributeSet();
        StyleConstants.setBold(boldAttributeSet, true);

        insetAttributeSet = new SimpleAttributeSet();
        StyleConstants.setLeftIndent(insetAttributeSet, 6);
        //throwable col may have a tab..if so, render the tab as col zero
        int pos = 0;
        int align = TabStop.ALIGN_LEFT;
        int leader = TabStop.LEAD_NONE;
        TabStop tabStop = new TabStop(pos, align, leader);
        tabs = new TabSet(new TabStop[]{tabStop});

        levelTextPane.setOpaque(true);
        levelTextPane.setText("");

        levelPanel.add(levelTextPane);

        this.colorizer = colorizer;
        multiLineTextPane = new JTextPane();
        multiLineTextPane.setEditorKit(new StyledEditorKit());

        singleLineTextPane.setEditorKit(new OneLineEditorKit());
        levelTextPane.setEditorKit(new OneLineEditorKit());

        multiLineTextPane.setEditable(false);
        multiLineTextPane.setFont(levelTextPane.getFont());

        multiLineTextPane.setParagraphAttributes(insetAttributeSet, false);
        singleLineTextPane.setParagraphAttributes(insetAttributeSet, false);
        levelTextPane.setParagraphAttributes(insetAttributeSet, false);
    }