public final class JRTextMeasurerUtil
extends java.lang.Object
JRTextMeasurer
,
JRTextMeasurerFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROPERTY_TEXT_MEASURER_FACTORY
Property that specifies a text measurer factory.
|
Modifier and Type | Method and Description |
---|---|
static JRTextMeasurer |
createTextMeasurer(JRCommonText text)
Creates a text measurer for a text object.
|
static JRTextMeasurer |
createTextMeasurer(JRCommonText text,
JRPropertiesHolder propertiesHolder)
Creates a text measurer for a text object.
|
static JRTextMeasurerFactory |
getTextMeasurerFactory(JRPropertiesHolder propertiesHolder)
Returns the text measurer factory given a set of properties.
|
protected static java.lang.String |
getTextMeasurerFactoryClass(JRPropertiesHolder propertiesHolder) |
public static final java.lang.String PROPERTY_TEXT_MEASURER_FACTORY
This property can either hold the name of a text measurer factory class, e.g.
or hold an alias of a text measurer factory class property, e.g.
net.sf.jasperreports.text.measurer.factory=org.me.MyTextMeasurerFactory
net.sf.jasperreports.text.measurer.factory=myTextMeasurer
...
net.sf.jasperreports.text.measurer.factory.myTextMeasurer=org.me.MyTextMeasurerFactory
JRTextMeasurerFactory
,
Constant Field Valuespublic static JRTextMeasurer createTextMeasurer(JRCommonText text)
If the text object is an instance of JRPropertiesHolder
, its properties
are used when determining the text measurer factory.
text
- the text objectpublic static JRTextMeasurer createTextMeasurer(JRCommonText text, JRPropertiesHolder propertiesHolder)
text
- the text objectpropertiesHolder
- the properties to use for determining the text measurer factory;
can be null
public static JRTextMeasurerFactory getTextMeasurerFactory(JRPropertiesHolder propertiesHolder)
propertiesHolder
- the properties holderprotected static java.lang.String getTextMeasurerFactoryClass(JRPropertiesHolder propertiesHolder)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com