Package net.sf.jasperreports.engine.util
Class JRStyledTextUtil
java.lang.Object
net.sf.jasperreports.engine.util.JRStyledTextUtil
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFallbackRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex, net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts) protected voidaddFontRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex, FontInfo fontInfo) protected voidcopyRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex) protected JRStyledTextcreateProcessedStyledText(JRStyledText styledText, String text, List<JRStyledText.Run> newRuns) protected JRStyledTextUtil.FontMatchfontMatchRun(String text, int startIndex, int endIndex, List<net.sf.jasperreports.engine.util.JRStyledTextUtil.Face> fonts) static JRStyledTextgetBulletedStyledText(JRStyledText styledText) static JRStyledTextgetBulletedText(JRStyledText styledText) static StringgetBulletText(StyledTextListInfo list, StyledTextListItemInfo listItem) static StringgetBulletText(StyledTextWriteContext context) protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFontsgetFamilyFonts(String name, Locale locale) static Stringstatic JRStyledTextUtilgetInstance(JasperReportsContext jasperReportsContext) getProcessedStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector, String exporterKey) protected JRStyledTextgetStyledText(JRPrintText printText, String text, JRStyledTextAttributeSelector attributeSelector, Locale locale) getStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector) getTruncatedText(JRPrintText printText) protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFontsloadFamilyFonts(String name, Locale locale) protected voidmatchFonts(String text, int startIndex, int endIndex, Map<AttributedCharacterIterator.Attribute, Object> attributes, net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts, List<JRStyledText.Run> newRuns) static voidresizeRuns(List<JRStyledText.Run> runs, int startIndex, int count) resolveFonts(JRStyledText styledText, Locale locale) protected JRStyledTextresolveFonts(JRStyledText styledText, Locale locale, String exporterKey)
-
Method Details
-
getInstance
-
getFontUtil
-
getTruncatedText
-
getStyledText
public JRStyledText getStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector) -
getStyledText
protected JRStyledText getStyledText(JRPrintText printText, String text, JRStyledTextAttributeSelector attributeSelector, Locale locale) -
getProcessedStyledText
public JRStyledText getProcessedStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector, String exporterKey) -
resolveFonts
-
resolveFonts
-
createProcessedStyledText
protected JRStyledText createProcessedStyledText(JRStyledText styledText, String text, List<JRStyledText.Run> newRuns) -
matchFonts
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) -
copyRun
protected void copyRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex) -
addFallbackRun
protected void addFallbackRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex, net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts familyFonts) -
addFontRun
protected void addFontRun(List<JRStyledText.Run> newRuns, Map<AttributedCharacterIterator.Attribute, Object> attributes, int startIndex, int endIndex, FontInfo fontInfo) -
fontMatchRun
protected JRStyledTextUtil.FontMatch fontMatchRun(String text, int startIndex, int endIndex, List<net.sf.jasperreports.engine.util.JRStyledTextUtil.Face> fonts) -
getFamilyFonts
-
loadFamilyFonts
-
getIndentedBulletText
-
getBulletText
-
getBulletText
-
getBulletedText
-
getBulletedStyledText
-
resizeRuns
-