Package net.sf.jasperreports.engine.fill
Interface JRMeasuredText
- All Known Implementing Classes:
SimpleMeasuredText,TextMeasurer.TextMeasuredState
public interface JRMeasuredText
Text measuring information as produced by a
text measurer.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionfloatReturns the text's average character width.floatReturns the text leading offset.short[]Returns the line break offsets as required forJRPrintText.getLineBreakOffsets().floatReturn the line spacing factor for the text.floatReturns the text's measure height.intReturns the offset up to which text fitted.Returns the suffix that was appended to the text (aftergetTextOffset()).floatReturns the text's measure width.booleanReturns whether the text was determined to be left to right or not.booleanReturns whether the text was cut during a paragraph or the last paragraph was complete.
-
Method Details
-
getLeadingOffset
float getLeadingOffset()Returns the text leading offset.- Returns:
- the text leading offset
-
getLineSpacingFactor
float getLineSpacingFactor()Return the line spacing factor for the text.- Returns:
- the line spacing factor
-
getTextWidth
float getTextWidth()Returns the text's measure width.- Returns:
- the text's measure width
-
getAverageCharWidth
float getAverageCharWidth()Returns the text's average character width.- Returns:
- the text's average character width
-
getTextHeight
float getTextHeight()Returns the text's measure height.- Returns:
- the text's measure height
-
getTextOffset
int getTextOffset()Returns the offset up to which text fitted.- Returns:
- the offset up to which text fitted
-
isLeftToRight
boolean isLeftToRight()Returns whether the text was determined to be left to right or not.- Returns:
- whether the text was determined to be left to right
-
isParagraphCut
boolean isParagraphCut()Returns whether the text was cut during a paragraph or the last paragraph was complete.- Returns:
- whether the last paragraph was cut
-
getTextSuffix
String getTextSuffix()Returns the suffix that was appended to the text (aftergetTextOffset()).- Returns:
- the suffix that was appended to the text
-
getLineBreakOffsets
short[] getLineBreakOffsets()Returns the line break offsets as required forJRPrintText.getLineBreakOffsets().- Returns:
- the line break offsets for the measured text
-