Package net.sf.jasperreports.engine
Class JRStyledTextAttributeSelector
java.lang.Object
net.sf.jasperreports.engine.JRStyledTextAttributeSelector
Selector of element-level styled text attributes for print text objects.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JRStyledTextAttributeSelector
(JasperReportsContext jasperReportsContext) -
Method Summary
Modifier and TypeMethodDescriptiongetAllSelector
(JasperReportsContext jasperReportsContext) Selects all styled text attributes, i.e.getNoBackcolorSelector
(JasperReportsContext jasperReportsContext) Selects all styled text attribute except backcolor, i.e.getNoneSelector
(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 Locale
getTextLocale
(JRPrintText printText)
-
Field Details
-
jasperReportsContext
-
-
Constructor Details
-
JRStyledTextAttributeSelector
-
-
Method Details
-
getTextLocale
-
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.
-