class TextLeaf implements LogEntryComponent {

    @Override
    public String toHtml() {
        String result = mText.replaceAll("\\r\\n?|\\n", "<br />");
        if (mOptions.getTextColor() != null) {
            result = "<font color='" + mOptions.getTextColor() + "'>" + result + "</font>";
        } else {
            result = "<font color='#FFF'>" + result + "</font>";
        }
        if (mOptions.isBold()) {
            result = "<b>" + result + "</b>";
        }
        if (mOptions.isItalic()) {
            result = "<i>" + result + "</i>";
        }
        return result;
    }

      TextLeaf();
      TextLeaf(String text);
      TextLeaf(FormattingOptions options);
    public  TextLeaf(String text, FormattingOptions options);

}