Package org.xhtmlrenderer.render
Class InlineText
java.lang.Object
org.xhtmlrenderer.render.InlineText
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 -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanvoidcountJustifiableChars(CharCounts counts) intgetEnd()shortshortintgetStart()intgetWidth()intgetX()booleanbooleanisEmpty()booleanbooleanvoidvoidvoidvoidsetFunctionData(FunctionData functionData) voidsetMasterText(String masterText) voidsetParent(InlineLayoutBox parent) voidsetSelectionEnd(short s) voidsetSelectionStart(short s) voidsetSubstring(int start, int end) voidsetTextNode(Text node) voidsetTrimmedLeadingSpace(boolean trimmedLeadingSpace) voidsetWidth(int width) voidsetX(int x) toString()voidvoidbooleanupdateSelection(RenderingContext c, Rectangle selection)
-
Constructor Details
-
InlineText
public InlineText()
-
-
Method Details
-
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
-
updateSelection
-
clearSelection
public boolean clearSelection() -
isSelected
public boolean isSelected() -
getSelectionEnd
public short getSelectionEnd() -
getSelectionStart
public short getSelectionStart() -
getSelection
-
selectAll
public void selectAll() -
getTextExportText
-
isTrimmedLeadingSpace
public boolean isTrimmedLeadingSpace() -
setTrimmedLeadingSpace
public void setTrimmedLeadingSpace(boolean trimmedLeadingSpace) -
countJustifiableChars
-
calcTotalAdjustment
-
getStart
public int getStart() -
getEnd
public int getEnd() -
setSelectionStart
public void setSelectionStart(short s) -
setSelectionEnd
public void setSelectionEnd(short s) -
getTextNode
-
setTextNode
-