|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jasperreports.engine.util.JRTextMeasurerUtil
public final class JRTextMeasurerUtil
Text measurer utility class.
JRTextMeasurer,
JRTextMeasurerFactory| Nested Class Summary | |
|---|---|
static class |
JRTextMeasurerUtil.WrappingTextMeasurerFactory
Deprecated. To be removed. |
| Field Summary | |
|---|---|
static String |
PROPERTY_TEXT_MEASURER_FACTORY
Property that specifies a text measurer factory. |
| Method Summary | |
|---|---|
JRTextMeasurer |
createTextMeasurer(JRCommonText text)
Creates a text measurer for a text object. |
JRTextMeasurer |
createTextMeasurer(JRCommonText text,
JRPropertiesHolder propertiesHolder)
Creates a text measurer for a text object. |
JRTextMeasurerFactory |
getFactory(JRPropertiesHolder propertiesHolder)
Returns the text measurer factory given a set of properties. |
static JRTextMeasurerUtil |
getInstance(JasperReportsContext jasperReportsContext)
|
JRTextMeasurerFactory |
getTextMeasurerFactory(JRPropertiesHolder propertiesHolder)
Deprecated. Replaced by getFactory(JRPropertiesHolder). |
protected String |
getTextMeasurerFactoryClass(JRPropertiesHolder propertiesHolder)
|
void |
measureTextElement(JRPrintText printText)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final 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 Values| Method Detail |
|---|
public static JRTextMeasurerUtil getInstance(JasperReportsContext jasperReportsContext)
public 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 object
public JRTextMeasurer createTextMeasurer(JRCommonText text,
JRPropertiesHolder propertiesHolder)
text - the text objectpropertiesHolder - the properties to use for determining the text measurer factory;
can be null
public JRTextMeasurerFactory getTextMeasurerFactory(JRPropertiesHolder propertiesHolder)
getFactory(JRPropertiesHolder).
public JRTextMeasurerFactory getFactory(JRPropertiesHolder propertiesHolder)
propertiesHolder - the properties holder
protected String getTextMeasurerFactoryClass(JRPropertiesHolder propertiesHolder)
public void measureTextElement(JRPrintText printText)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||