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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private int
private @Nullable FunctionData
private float @Nullable []
private String
private @Nullable InlineLayoutBox
private short
private short
private int
private final Text
private boolean
private boolean
private int
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
boolean
void
countJustifiableChars
(CharCounts counts) private void
int
getEnd()
@Nullable InlineLayoutBox
short
short
int
getStart()
int
getWidth()
int
getX()
boolean
boolean
isEmpty()
boolean
boolean
private boolean
void
void
void
void
setFunctionData
(FunctionData functionData) void
setParent
(InlineLayoutBox parent) void
setSelectionEnd
(short s) void
setSelectionStart
(short s) void
setTrimmedLeadingSpace
(boolean trimmedLeadingSpace) private void
final void
setWidth
(int width) void
setX
(int x) toString()
void
void
boolean
updateSelection
(RenderingContext c, Rectangle selection)
-
Field Details
-
_parent
-
_x
private int _x -
_masterText
-
_start
private int _start -
_end
private int _end -
_width
private int _width -
_functionData
-
_containedLF
private boolean _containedLF -
_selectionStart
private short _selectionStart -
_selectionEnd
private short _selectionEnd -
_glyphPositions
private float @Nullable [] _glyphPositions -
_trimmedLeadingSpace
private boolean _trimmedLeadingSpace -
_trimmedTrailingSpace
private boolean _trimmedTrailingSpace -
_textNode
-
-
Constructor Details
-
InlineText
-
-
Method Details
-
trimTrailingSpace
-
isEmpty
public boolean isEmpty() -
getSubstring
-
getMasterText
-
getX
public int getX() -
setX
public void setX(int x) -
getWidth
public int getWidth() -
setWidth
public final void setWidth(int width) -
paint
-
paintSelection
-
getParent
-
setParent
-
isDynamicFunction
public boolean isDynamicFunction() -
getFunctionData
-
setFunctionData
-
updateDynamicValue
-
toString
-
updateSelection
-
ensureGlyphPositions
-
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) -
setTrimmedTrailingSpace
private void setTrimmedTrailingSpace() -
isTrimmedTrailingSpace
private boolean isTrimmedTrailingSpace() -
countJustifiableChars
-
calcTotalAdjustment
-
getStart
public int getStart() -
getEnd
public int getEnd() -
setSelectionStart
public void setSelectionStart(short s) -
setSelectionEnd
public void setSelectionEnd(short s) -
getTextNode
-