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 TypeMethodDescriptionfloat
boolean
void
countJustifiableChars
(CharCounts counts) int
getEnd()
short
short
int
getStart()
int
getWidth()
int
getX()
boolean
boolean
isEmpty()
boolean
boolean
void
void
void
void
setFunctionData
(FunctionData functionData) void
setMasterText
(String masterText) void
setParent
(InlineLayoutBox parent) void
setSelectionEnd
(short s) void
setSelectionStart
(short s) void
setSubstring
(int start, int end) void
setTextNode
(Text node) void
setTrimmedLeadingSpace
(boolean trimmedLeadingSpace) void
setWidth
(int width) void
setX
(int x) toString()
void
void
boolean
updateSelection
(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
-