public class TextLeafSvgNodeRenderer extends AbstractSvgNodeRenderer implements ISvgTextNodeRenderer, ISvgTextNodeHelper
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() |
boolean |
containsRelativeMove() |
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() |
float[] |
getRelativeTranslation() |
float |
getTextContentLength(float parentFontSize,
com.itextpdf.kernel.font.PdfFont font) |
TextRectangle |
getTextRectangle(SvgDrawContext context,
com.itextpdf.kernel.geom.Point basePoint)
Return the bounding rectangle of the text element.
|
canConstructViewPort, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getObjectBoundingBox, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentpublic ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderercreateDeepCopy in interface ISvgNodeRendererpublic float getTextContentLength(float parentFontSize,
com.itextpdf.kernel.font.PdfFont font)
getTextContentLength in interface ISvgTextNodeRendererpublic float[] getRelativeTranslation()
getRelativeTranslation in interface ISvgTextNodeRendererpublic boolean containsRelativeMove()
containsRelativeMove in interface ISvgTextNodeRendererpublic boolean containsAbsolutePositionChange()
containsAbsolutePositionChange in interface ISvgTextNodeRendererpublic float[][] getAbsolutePositionChanges()
getAbsolutePositionChanges in interface ISvgTextNodeRendererpublic TextRectangle getTextRectangle(SvgDrawContext context, com.itextpdf.kernel.geom.Point basePoint)
ISvgTextNodeHelpergetTextRectangle in interface ISvgTextNodeHelpercontext - current SvgDrawContextbasePoint - end point of previous text elementTextRectangleprotected 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–2020 iText Group NV. All rights reserved.