Class ParsedTextImpl
java.lang.Object
com.lowagie.text.pdf.parser.ParsedTextImpl
- All Implemented Interfaces:
TextAssemblyBuffer
- Direct Known Subclasses:
ParsedText, Word
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate floatDeprecated.private VectorDeprecated.We track a vector representing our baseline, left->right, so that calculations of line- change can be accurate, even with 0-length words (representing lone spaces, when those are rendered by the PDF).private floatDeprecated.private VectorDeprecated.private floatDeprecated.private VectorDeprecated.private final StringDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionParsedTextImpl(String text, Vector startPoint, Vector endPoint, Vector baseline, float ascent, float descent, float spaceWidth) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanDeprecated.floatDeprecated.Deprecated.Return the vector representing the baseline of this text chunk, even if the length of the text is zero.floatDeprecated.Deprecated.floatDeprecated.Deprecated.getText()Deprecated.floatgetWidth()Deprecated.abstract booleanDeprecated.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TextAssemblyBuffer
accumulate, assemble, getFinalText
-
Field Details
-
text
Deprecated. -
ascent
private float ascentDeprecated. -
descent
private float descentDeprecated. -
startPoint
Deprecated. -
endPoint
Deprecated. -
spaceWidth
private float spaceWidthDeprecated. -
baseline
Deprecated.We track a vector representing our baseline, left->right, so that calculations of line- change can be accurate, even with 0-length words (representing lone spaces, when those are rendered by the PDF).
-
-
Constructor Details
-
ParsedTextImpl
ParsedTextImpl(String text, Vector startPoint, Vector endPoint, Vector baseline, float ascent, float descent, float spaceWidth) Deprecated.- Parameters:
text- characters to be rendered for this stringstartPoint- Initial rendering spot on baselineendPoint- ending render position on baselinebaseline- vector representing baseline (needed for 0-length strings)ascent- font ascent above baselinedescent- font descent below the baselingspaceWidth- What is the width of the space in this font....
-
-
Method Details
-
getText
Deprecated.- Specified by:
getTextin interfaceTextAssemblyBuffer- Returns:
- the text to render
- See Also:
-
getSingleSpaceWidth
public float getSingleSpaceWidth()Deprecated.- Returns:
- The width, in user space units, of a single space character in the current font
-
getAscent
public float getAscent()Deprecated. -
getDescent
public float getDescent()Deprecated. -
getWidth
public float getWidth()Deprecated. -
getStartPoint
Deprecated.- Returns:
- a vector in User space representing the start point of the text
-
getEndPoint
Deprecated.- Returns:
- a vector in User space representing the end point of the text (i.e. the starting point of the text plus the width of the text, transformed by the applicable transformation matrices)
-
getBaseline
Deprecated.Return the vector representing the baseline of this text chunk, even if the length of the text is zero.- Returns:
- baseline
- See Also:
-
shouldNotSplit
public abstract boolean shouldNotSplit()Deprecated.- Returns:
- true if this was extracted from a string containing spaces, in which case, we assume further splitting is not needed.
-
breakBefore
public abstract boolean breakBefore()Deprecated.- Returns:
- true if this was a space or other item that should force a space before it.
-