Package net.sf.jasperreports.engine.util
Class JRStyledTextUtil
- java.lang.Object
-
- net.sf.jasperreports.engine.util.JRStyledTextUtil
-
public class JRStyledTextUtil extends Object
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JRStyledTextUtil.FontMatch
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
static JRStyledText
getBulletedStyledText(JRStyledText styledText)
static JRStyledText
getBulletedText(JRStyledText styledText)
static String
getBulletText(StyledTextListInfo list, StyledTextListItemInfo listItem)
static String
getBulletText(StyledTextWriteContext context)
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts
getFamilyFonts(String name, Locale locale)
static String
getIndentedBulletText(StyledTextWriteContext context)
static JRStyledTextUtil
getInstance(JasperReportsContext jasperReportsContext)
JRStyledText
getProcessedStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector, String exporterKey)
protected JRStyledText
getStyledText(JRPrintText printText, String text, JRStyledTextAttributeSelector attributeSelector, Locale locale)
JRStyledText
getStyledText(JRPrintText printText, JRStyledTextAttributeSelector attributeSelector)
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)
static void
resizeRuns(List<JRStyledText.Run> runs, int startIndex, int count)
JRStyledText
resolveFonts(JRStyledText styledText, Locale locale)
protected JRStyledText
resolveFonts(JRStyledText styledText, Locale locale, String exporterKey)
-
-
-
Method Detail
-
getInstance
public static JRStyledTextUtil getInstance(JasperReportsContext jasperReportsContext)
-
getTruncatedText
public String getTruncatedText(JRPrintText printText)
-
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
public JRStyledText resolveFonts(JRStyledText styledText, Locale locale)
-
resolveFonts
protected JRStyledText resolveFonts(JRStyledText styledText, Locale locale, String exporterKey)
-
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
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts getFamilyFonts(String name, Locale locale)
-
loadFamilyFonts
protected net.sf.jasperreports.engine.util.JRStyledTextUtil.FamilyFonts loadFamilyFonts(String name, Locale locale)
-
getIndentedBulletText
public static String getIndentedBulletText(StyledTextWriteContext context)
-
getBulletText
public static String getBulletText(StyledTextWriteContext context)
-
getBulletText
public static String getBulletText(StyledTextListInfo list, StyledTextListItemInfo listItem)
-
getBulletedText
public static JRStyledText getBulletedText(JRStyledText styledText)
-
getBulletedStyledText
public static JRStyledText getBulletedStyledText(JRStyledText styledText)
-
resizeRuns
public static void resizeRuns(List<JRStyledText.Run> runs, int startIndex, int count)
-
-