public class TextLeafSvgNodeRenderer extends AbstractSvgNodeRenderer implements ISvgTextNodeRenderer
ISvgNodeRenderer implementation for drawing text to a canvas.attributesAndStyles| Constructor and Description |
|---|
TextLeafSvgNodeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canElementFill()
Method to see if a certain renderer can use fill.
|
boolean |
containsAbsolutePositionChange()
Deprecated.
|
boolean |
containsRelativeMove()
Deprecated.
|
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
protected void |
doDraw(SvgDrawContext context)
Draws this element to a canvas-like object maintained in the context.
|
float[][] |
getAbsolutePositionChanges()
Deprecated.
|
com.itextpdf.kernel.geom.Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Calculates the current object bounding box.
|
float[] |
getRelativeTranslation()
Deprecated.
|
float |
getTextContentLength(float parentFontSize,
com.itextpdf.kernel.font.PdfFont font)
Deprecated.
|
TextRectangle |
getTextRectangle(SvgDrawContext context,
com.itextpdf.kernel.geom.Point startPoint)
Return the bounding rectangle of the text element.
|
canConstructViewPort, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getCurrentFontSize, getCurrentViewBox, getParent, isHidden, parseAbsoluteLength, parseHorizontalLength, parseVerticalLength, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentpublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRenderer@Deprecated public float getTextContentLength(float parentFontSize, com.itextpdf.kernel.font.PdfFont font)
ISvgTextNodeRenderergetTextContentLength in interface ISvgTextNodeRendererparentFontSize - parent font sizefont - current font@Deprecated public float[] getRelativeTranslation()
ISvgTextNodeRenderergetRelativeTranslation(SvgDrawContext).
This is needed because xMove/yMove can contain relative values, so SvgDrawContext is needed to resolve them.getRelativeTranslation in interface ISvgTextNodeRenderer@Deprecated public boolean containsRelativeMove()
ISvgTextNodeRenderercontainsRelativeMove(SvgDrawContext).
This is needed because xMove/yMove can contain relative values, so SvgDrawContext is needed to resolve them.containsRelativeMove in interface ISvgTextNodeRenderertrue if there is a relative move, false otherwise@Deprecated public boolean containsAbsolutePositionChange()
ISvgTextNodeRenderercontainsAbsolutePositionChange(SvgDrawContext).
This is needed because x/y can contain relative values, so SvgDrawContext is needed to resolve them.containsAbsolutePositionChange in interface ISvgTextNodeRenderertrue if an absolute position is specified via x/y attributes, false otherwise@Deprecated public float[][] getAbsolutePositionChanges()
ISvgTextNodeRenderergetAbsolutePositionChanges(SvgDrawContext).
This is needed because x/y can contain relative values, so SvgDrawContext is needed to resolve them.getAbsolutePositionChanges in interface ISvgTextNodeRendererpublic TextRectangle getTextRectangle(SvgDrawContext context, com.itextpdf.kernel.geom.Point startPoint)
ISvgTextNodeRenderergetTextRectangle in interface ISvgTextNodeRenderercontext - current SvgDrawContextstartPoint - end point of previous text elementTextRectanglepublic com.itextpdf.kernel.geom.Rectangle getObjectBoundingBox(SvgDrawContext context)
ISvgNodeRenderergetObjectBoundingBox in interface ISvgNodeRenderercontext - the current context, for instance it contains current viewport and available
font dataRectangle representing the current object's bounding box, or null
if bounding box is undefinedprotected void doDraw(SvgDrawContext context)
AbstractSvgNodeRendererdoDraw in class AbstractSvgNodeRenderercontext - the object that knows the place to draw this element and maintains its stateprotected boolean canElementFill()
AbstractSvgNodeRenderercanElementFill in class AbstractSvgNodeRendererCopyright © 1998–2025 Apryse Group NV. All rights reserved.