public static TextContent textContent( final IContent content, final ContentRange range, final Styles styles) { final TextContent textContent = new TextContent(); textContent.setContent(content, range); textContent.setFont(font(styles)); textContent.setColor(styles.getColor()); return textContent; }
public static TextContent textContentWithLineBreak( final IContent content, final ContentRange range, final Styles styles) { final TextContent textContent = textContent(content, range, styles); textContent.setLineWrappingAtEnd(LineWrappingRule.REQUIRED); return textContent; }