Package net.sf.jasperreports.engine.fill
Class NaiveTextMeasurer
java.lang.Object
net.sf.jasperreports.engine.fill.NaiveTextMeasurer
- All Implemented Interfaces:
JRTextMeasurer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmeasure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow) Fit a text chunk in a given space.
-
Constructor Details
-
NaiveTextMeasurer
-
-
Method Details
-
measure
public JRMeasuredText measure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow) Description copied from interface:JRTextMeasurerFit a text chunk in a given space.- Specified by:
measurein interfaceJRTextMeasurer- Parameters:
styledText- the full textremainingTextStart- the start index of the remaining textavailableStretchHeight- the available stretch heightindentFirstLine- whether should honor first line indentcanOverflow- whether the text element is able to overflow- Returns:
- text measuring information
-