Package net.sf.jasperreports.engine.fill
Class NaiveTextMeasurer
- java.lang.Object
-
- net.sf.jasperreports.engine.fill.NaiveTextMeasurer
-
- All Implemented Interfaces:
JRTextMeasurer
public class NaiveTextMeasurer extends Object implements JRTextMeasurer
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description NaiveTextMeasurer(JRCommonText text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JRMeasuredText
measure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow)
Fit a text chunk in a given space.
-
-
-
Constructor Detail
-
NaiveTextMeasurer
public NaiveTextMeasurer(JRCommonText text)
-
-
Method Detail
-
measure
public JRMeasuredText measure(JRStyledText styledText, int remainingTextStart, int availableStretchHeight, boolean indentFirstLine, boolean canOverflow)
Description copied from interface:JRTextMeasurer
Fit a text chunk in a given space.- Specified by:
measure
in 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
-
-