public abstract class JRStyledTextAttributeSelector extends Object
JRStyledTextUtil.getStyledText(JRPrintText, JRStyledTextAttributeSelector),
JRPrintText.getFullStyledText(JRStyledTextAttributeSelector)| Modifier and Type | Field and Description |
|---|---|
static JRStyledTextAttributeSelector |
ALL
Deprecated.
Replaced by
getAllSelector(JasperReportsContext). |
protected JasperReportsContext |
jasperReportsContext |
static JRStyledTextAttributeSelector |
NO_BACKCOLOR
Deprecated.
Replaced by
getNoBackcolorSelector(JasperReportsContext). |
static JRStyledTextAttributeSelector |
NONE
Deprecated.
Replaced by
getNoneSelector(JasperReportsContext). |
| Modifier | Constructor and Description |
|---|---|
protected |
JRStyledTextAttributeSelector(JasperReportsContext jasperReportsContext) |
| Modifier and Type | Method and Description |
|---|---|
static JRStyledTextAttributeSelector |
getAllSelector(JasperReportsContext jasperReportsContext)
Selects all styled text attributes, i.e. font attributes plus forecolor
and backcolor.
|
static JRStyledTextAttributeSelector |
getNoBackcolorSelector(JasperReportsContext jasperReportsContext)
Selects all styled text attribute except backcolor, i.e. font attributes
plus forecolor.
|
static JRStyledTextAttributeSelector |
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) |
protected final JasperReportsContext jasperReportsContext
public static final JRStyledTextAttributeSelector ALL
getAllSelector(JasperReportsContext).public static final JRStyledTextAttributeSelector NO_BACKCOLOR
getNoBackcolorSelector(JasperReportsContext).public static final JRStyledTextAttributeSelector NONE
getNoneSelector(JasperReportsContext).protected JRStyledTextAttributeSelector(JasperReportsContext jasperReportsContext)
public static Locale getTextLocale(JRPrintText printText)
public abstract Map<AttributedCharacterIterator.Attribute,Object> getStyledTextAttributes(JRPrintText printText)
printText - the print text objectpublic static JRStyledTextAttributeSelector getAllSelector(JasperReportsContext jasperReportsContext)
public static JRStyledTextAttributeSelector getNoBackcolorSelector(JasperReportsContext jasperReportsContext)
public static JRStyledTextAttributeSelector getNoneSelector(JasperReportsContext jasperReportsContext)
Copyright © 2014. All rights reserved.