public class TextSvgBranchRenderer extends AbstractSvgNodeRenderer implements ISvgTextNodeRenderer
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() |
float[] |
getRelativeTranslation() |
float |
getTextContentLength(float parentFontSize, PdfFont font) |
void |
markWhiteSpaceProcessed() |
canConstructViewPort, canElementFill, deepCopyAttributesAndStyles, draw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdraw, getAttribute, getAttributeMapCopy, getParent, setAttribute, setAttributesAndStyles, setParentprotected 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()
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–2019 iText Group NV. All rights reserved.