protected static class TextMeasurer.TextMeasuredState extends java.lang.Object implements JRMeasuredText, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected boolean |
isLeftToRight |
protected int |
lastOffset |
protected java.util.ArrayList |
lineBreakOffsets |
protected int |
lines |
protected int |
paragraphStartLine |
protected float |
textHeight |
protected int |
textOffset |
protected java.lang.String |
textSuffix |
Constructor and Description |
---|
TextMeasuredState(boolean saveLineBreakOffsets) |
Modifier and Type | Method and Description |
---|---|
protected void |
addLineBreak() |
TextMeasurer.TextMeasuredState |
cloneState() |
short[] |
getLineBreakOffsets()
Returns the line break offsets as required for
JRPrintText.getLineBreakOffsets() . |
float |
getTextHeight()
Returns the text's measure height.
|
int |
getTextOffset()
Returns the offset up to which text fitted.
|
java.lang.String |
getTextSuffix()
Returns the suffix that was appended to the text
(after
JRMeasuredText.getTextOffset() ). |
boolean |
isLeftToRight()
Returns whether the text was determined to be left to right or not.
|
protected int textOffset
protected int lines
protected int paragraphStartLine
protected float textHeight
protected boolean isLeftToRight
protected java.lang.String textSuffix
protected int lastOffset
protected java.util.ArrayList lineBreakOffsets
public boolean isLeftToRight()
JRMeasuredText
isLeftToRight
in interface JRMeasuredText
public int getTextOffset()
JRMeasuredText
getTextOffset
in interface JRMeasuredText
public float getTextHeight()
JRMeasuredText
getTextHeight
in interface JRMeasuredText
public java.lang.String getTextSuffix()
JRMeasuredText
JRMeasuredText.getTextOffset()
).getTextSuffix
in interface JRMeasuredText
public TextMeasurer.TextMeasuredState cloneState()
protected void addLineBreak()
public short[] getLineBreakOffsets()
JRMeasuredText
JRPrintText.getLineBreakOffsets()
.getLineBreakOffsets
in interface JRMeasuredText
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com