Class InlineText
java.lang.Object
org.openpdf.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 booleanprivate intprivate @Nullable FunctionDataprivate float @Nullable []private Stringprivate @Nullable InlineLayoutBoxprivate shortprivate shortprivate intprivate final Textprivate booleanprivate booleanprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanvoidcountJustifiableChars(CharCounts counts) private voidintgetEnd()@Nullable InlineLayoutBoxshortshortintgetStart()intgetWidth()intgetX()booleanbooleanisEmpty()booleanbooleanprivate booleanvoidvoidvoidvoidsetFunctionData(FunctionData functionData) voidsetParent(InlineLayoutBox parent) voidsetSelectionEnd(short s) voidsetSelectionStart(short s) voidsetTrimmedLeadingSpace(boolean trimmedLeadingSpace) private voidfinal voidsetWidth(int width) voidsetX(int x) toString()voidvoidbooleanupdateSelection(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
-