Package net.sf.jasperreports.engine
Class JRStyledTextAttributeSelector
- java.lang.Object
-
- net.sf.jasperreports.engine.JRStyledTextAttributeSelector
-
public abstract class JRStyledTextAttributeSelector extends Object
Selector of element-level styled text attributes for print text objects.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JRStyledTextUtil.getStyledText(JRPrintText, JRStyledTextAttributeSelector),JRPrintText.getFullStyledText(JRStyledTextAttributeSelector)
-
-
Field Summary
Fields Modifier and Type Field Description protected JasperReportsContextjasperReportsContext
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRStyledTextAttributeSelector(JasperReportsContext jasperReportsContext)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static JRStyledTextAttributeSelectorgetAllSelector(JasperReportsContext jasperReportsContext)Selects all styled text attributes, i.e. font attributes plus forecolor and backcolor.static JRStyledTextAttributeSelectorgetNoBackcolorSelector(JasperReportsContext jasperReportsContext)Selects all styled text attribute except backcolor, i.e. font attributes plus forecolor.static JRStyledTextAttributeSelectorgetNoneSelector(JasperReportsContext jasperReportsContext)Doesn't select any styled text attribute.abstract Map<AttributedCharacterIterator.Attribute,Object>getStyledTextAttributes(JRPrintText printText)Construct a map containing the selected element-level styled text attributes for a print text element.static LocalegetTextLocale(JRPrintText printText)
-
-
-
Field Detail
-
jasperReportsContext
protected final JasperReportsContext jasperReportsContext
-
-
Constructor Detail
-
JRStyledTextAttributeSelector
protected JRStyledTextAttributeSelector(JasperReportsContext jasperReportsContext)
-
-
Method Detail
-
getTextLocale
public static Locale getTextLocale(JRPrintText printText)
-
getStyledTextAttributes
public abstract Map<AttributedCharacterIterator.Attribute,Object> getStyledTextAttributes(JRPrintText printText)
Construct a map containing the selected element-level styled text attributes for a print text element.- Parameters:
printText- the print text object- Returns:
- a map containing styled text attributes
-
getAllSelector
public static JRStyledTextAttributeSelector getAllSelector(JasperReportsContext jasperReportsContext)
Selects all styled text attributes, i.e. font attributes plus forecolor and backcolor.
-
getNoBackcolorSelector
public static JRStyledTextAttributeSelector getNoBackcolorSelector(JasperReportsContext jasperReportsContext)
Selects all styled text attribute except backcolor, i.e. font attributes plus forecolor.
-
getNoneSelector
public static JRStyledTextAttributeSelector getNoneSelector(JasperReportsContext jasperReportsContext)
Doesn't select any styled text attribute.
-
-