public class TextSvgBranchRenderer extends AbstractSvgNodeRenderer implements ISvgTextNodeRenderer, ISvgTextNodeHelper
ISvgNodeRenderer
implementation for the Modifier and Type | Field and Description |
---|---|
protected boolean |
performRootTransformations |
protected static AffineTransform |
TEXTFLIP
Top level transformation to flip the y-axis results in the character glyphs being mirrored, this tf corrects for this behaviour
|
attributesAndStyles
Constructor and Description |
---|
TextSvgBranchRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(ISvgTextNodeRenderer child) |
boolean |
containsAbsolutePositionChange() |
boolean |
containsRelativeMove() |
ISvgNodeRenderer |
createDeepCopy()
Creates a deep copy of this renderer, including it's subtree of children
|
protected void |
doDraw(SvgDrawContext context)
Method that will set properties to be inherited by this branch renderer's children and will iterate over all children in order to draw them.
|
float[][] |
getAbsolutePositionChanges() |
List<ISvgTextNodeRenderer> |
getChildren() |
protected Rectangle |
getObjectBoundingBox(SvgDrawContext context)
Evaluate the current object bounding box.
|
float[] |
getRelativeTranslation() |
float |
getTextContentLength(float parentFontSize, PdfFont font) |
TextRectangle |
getTextRectangle(SvgDrawContext context, Point basePoint)
Return the bounding rectangle of the text element.
|
void |
markWhiteSpaceProcessed() |
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getAttributeOrDefault, getCurrentFontSize, getParent, parseAbsoluteLength, setAttribute, setAttributesAndStyles, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParent
protected static final AffineTransform TEXTFLIP
protected boolean performRootTransformations
public ISvgNodeRenderer createDeepCopy()
ISvgNodeRenderer
createDeepCopy
in interface ISvgNodeRenderer
public final void addChild(ISvgTextNodeRenderer child)
public final List<ISvgTextNodeRenderer> getChildren()
public float getTextContentLength(float parentFontSize, PdfFont font)
getTextContentLength
in interface ISvgTextNodeRenderer
public float[] getRelativeTranslation()
getRelativeTranslation
in interface ISvgTextNodeRenderer
public boolean containsRelativeMove()
containsRelativeMove
in interface ISvgTextNodeRenderer
public boolean containsAbsolutePositionChange()
containsAbsolutePositionChange
in interface ISvgTextNodeRenderer
public float[][] getAbsolutePositionChanges()
getAbsolutePositionChanges
in interface ISvgTextNodeRenderer
public void markWhiteSpaceProcessed()
public TextRectangle getTextRectangle(SvgDrawContext context, Point basePoint)
ISvgTextNodeHelper
getTextRectangle
in interface ISvgTextNodeHelper
context
- current SvgDrawContext
basePoint
- end point of previous text element
TextRectangle
protected Rectangle getObjectBoundingBox(SvgDrawContext context)
AbstractSvgNodeRenderer
getObjectBoundingBox
in class AbstractSvgNodeRenderer
context
- the object that knows the place to draw this element and maintains its state
Rectangle
representing the current object's bounding box
protected void doDraw(SvgDrawContext context)
doDraw
in class AbstractSvgNodeRenderer
context
- the object that knows the place to draw this element and maintains its state
Copyright © 1998–2023 iText Group NV. All rights reserved.