Package com.openhtmltopdf.render
Class InlineText
java.lang.Object
com.openhtmltopdf.render.InlineText
public class InlineText extends Object
A lightweight object which contains a chunk of text from an inline element.
It will never extend across a line break nor will it extend across an element
nested within its inline element.
-
Constructor Summary
Constructors Constructor Description InlineText() -
Method Summary
-
Constructor Details
-
InlineText
public InlineText()
-
-
Method Details
-
setTextDirection
public void setTextDirection(byte direction)- Parameters:
direction- either LTR or RTL from BidiSplitter interface.
-
getTextDirection
public byte getTextDirection()- Returns:
- either LTR or RTL from BidiSplitter interface.
-
setLetterSpacing
public void setLetterSpacing(float letterSpacing) -
getLetterSpacing
public float getLetterSpacing() -
trimTrailingSpace
-
isEmpty
public boolean isEmpty() -
getSubstring
-
setSubstring
public void setSubstring(int start, int end) -
getMasterText
-
setMasterText
-
getX
public int getX() -
setX
public void setX(int x) -
getWidth
public int getWidth() -
setWidth
public void setWidth(int width) -
paint
-
paintSelection
-
getParent
-
setParent
-
isDynamicFunction
public boolean isDynamicFunction() -
getFunctionData
-
setFunctionData
-
updateDynamicValue
-
toString
-
getTextExportText
-
isTrimmedLeadingSpace
public boolean isTrimmedLeadingSpace() -
setTrimmedLeadingSpace
public void setTrimmedLeadingSpace(boolean trimmedLeadingSpace) -
isJustifySpaceCodePoint
public static boolean isJustifySpaceCodePoint(int cp) -
countJustifiableChars
-
calcTotalAdjustment
-
getStart
public int getStart() -
getEnd
public int getEnd() -
setEndsOnSoftHyphen
public void setEndsOnSoftHyphen(boolean endsOnSoftHyphen) -
isEndsOnSoftHyphen
public boolean isEndsOnSoftHyphen()
-