public class JRStyledTextUtil extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
JRStyledTextUtil.FontMatch |
Modifier and Type | Method and Description |
---|---|
protected void |
addFallbackRun(List<JRStyledText.Run> newRuns,
Map<AttributedCharacterIterator.Attribute,Object> attributes,
int startIndex,
int endIndex,
net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts) |
protected void |
addFontRun(List<JRStyledText.Run> newRuns,
Map<AttributedCharacterIterator.Attribute,Object> attributes,
int startIndex,
int endIndex,
FontInfo fontInfo) |
protected void |
copyRun(List<JRStyledText.Run> newRuns,
Map<AttributedCharacterIterator.Attribute,Object> attributes,
int startIndex,
int endIndex) |
protected JRStyledText |
createProcessedStyledText(JRStyledText styledText,
String text,
List<JRStyledText.Run> newRuns) |
protected JRStyledTextUtil.FontMatch |
fontMatchRun(String text,
int startIndex,
int endIndex,
List<net.sf.jasperreports.engine.util.JRStyledTextUtil.Face> fonts) |
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts |
getFamilyFonts(String name,
Locale locale) |
static JRStyledTextUtil |
getInstance(JasperReportsContext jasperReportsContext) |
JRStyledText |
getProcessedStyledText(JRPrintText printText,
JRStyledTextAttributeSelector attributeSelector,
String exporterKey) |
JRStyledText |
getStyledText(JRPrintText printText,
JRStyledTextAttributeSelector attributeSelector) |
protected JRStyledText |
getStyledText(JRPrintText printText,
String text,
JRStyledTextAttributeSelector attributeSelector,
Locale locale) |
String |
getTruncatedText(JRPrintText printText) |
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts |
loadFamilyFonts(String name,
Locale locale) |
protected void |
matchFonts(String text,
int startIndex,
int endIndex,
Map<AttributedCharacterIterator.Attribute,Object> attributes,
net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts,
List<JRStyledText.Run> newRuns) |
JRStyledText |
resolveFonts(JRStyledText styledText,
Locale locale) |
protected JRStyledText |
resolveFonts(JRStyledText styledText,
Locale locale,
String exporterKey) |
public static JRStyledTextUtil getInstance(JasperReportsContext jasperReportsContext)
public String getTruncatedText(JRPrintText printText)
public JRStyledText getStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector)
protected JRStyledText getStyledText(JRPrintText printText, String text, JRStyledTextAttributeSelector attributeSelector, Locale locale)
public JRStyledText getProcessedStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector, String exporterKey)
public JRStyledText resolveFonts(JRStyledText styledText, Locale locale)
protected JRStyledText resolveFonts(JRStyledText styledText, Locale locale, String exporterKey)
protected JRStyledText createProcessedStyledText(JRStyledText styledText, String text, List<JRStyledText.Run> newRuns)
protected void matchFonts(String text, int startIndex, int endIndex, Map<AttributedCharacterIterator.Attribute,Object> attributes, net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts, List<JRStyledText.Run> newRuns)
protected void copyRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex)
protected void addFallbackRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex, net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts)
protected void addFontRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute,Object> attributes, int startIndex, int endIndex, FontInfo fontInfo)
protected JRStyledTextUtil.FontMatch fontMatchRun(String text, int startIndex, int endIndex, List<net.sf.jasperreports.engine.util.JRStyledTextUtil.Face> fonts)
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts getFamilyFonts(String name, Locale locale)
Copyright © 2016. All rights reserved.