protected static class TextMeasurer.TextMeasuredState extends Object implements JRMeasuredText, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected float |
firstLineLeading |
protected int |
firstLineMaxFontSize |
protected int |
fontSizeSum |
protected boolean |
isLeftToRight |
protected boolean |
isMeasured |
protected int |
lastOffset |
protected ArrayList<Integer> |
lineBreakOffsets |
protected int |
lines |
protected int |
paragraphStartLine |
protected float |
textHeight |
protected int |
textOffset |
protected String |
textSuffix |
protected float |
textWidth |
| Constructor and Description |
|---|
TextMeasuredState(boolean saveLineBreakOffsets) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addLineBreak() |
TextMeasurer.TextMeasuredState |
cloneState() |
float |
getLeadingOffset()
Returns the text leading offset.
|
short[] |
getLineBreakOffsets()
Returns the line break offsets as required for
JRPrintText.getLineBreakOffsets(). |
float |
getLineSpacingFactor()
Return the line spacing factor for the text.
|
float |
getTextHeight()
Returns the text's measure height.
|
int |
getTextOffset()
Returns the offset up to which text fitted.
|
String |
getTextSuffix()
Returns the suffix that was appended to the text
(after
JRMeasuredText.getTextOffset()). |
float |
getTextWidth()
Returns the text's measure width.
|
boolean |
isLeftToRight()
Returns whether the text was determined to be left to right or not.
|
protected int textOffset
protected int lines
protected int fontSizeSum
protected int firstLineMaxFontSize
protected int paragraphStartLine
protected float textWidth
protected float textHeight
protected float firstLineLeading
protected boolean isLeftToRight
protected String textSuffix
protected boolean isMeasured
protected int lastOffset
public boolean isLeftToRight()
JRMeasuredTextisLeftToRight in interface JRMeasuredTextpublic int getTextOffset()
JRMeasuredTextgetTextOffset in interface JRMeasuredTextpublic float getTextWidth()
JRMeasuredTextgetTextWidth in interface JRMeasuredTextpublic float getTextHeight()
JRMeasuredTextgetTextHeight in interface JRMeasuredTextpublic float getLineSpacingFactor()
JRMeasuredTextgetLineSpacingFactor in interface JRMeasuredTextpublic float getLeadingOffset()
JRMeasuredTextgetLeadingOffset in interface JRMeasuredTextpublic String getTextSuffix()
JRMeasuredTextJRMeasuredText.getTextOffset()).getTextSuffix in interface JRMeasuredTextpublic TextMeasurer.TextMeasuredState cloneState()
protected void addLineBreak()
public short[] getLineBreakOffsets()
JRMeasuredTextJRPrintText.getLineBreakOffsets().getLineBreakOffsets in interface JRMeasuredTextCopyright © 2017. All rights reserved.