Interface ISvgTextNodeRenderer
- All Superinterfaces:
ISvgNodeRenderer
- All Known Implementing Classes:
TextLeafSvgNodeRenderer, TextSvgBranchRenderer, TextSvgTSpanBranchRenderer
Interface for <text> and <tspan> related renderers.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.booleanDeprecated.float[][]Deprecated.float[]Deprecated.floatgetTextContentLength(float parentFontSize, PdfFont font) Deprecated.getTextRectangle(SvgDrawContext context, Point basePoint) Return the bounding rectangle of the text element.Methods inherited from interface ISvgNodeRenderer
createDeepCopy, draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
-
Method Details
-
getTextContentLength
Deprecated.Gets text content length.- Parameters:
parentFontSize- parent font sizefont- current font- Returns:
- text content length
-
getRelativeTranslation
Deprecated.This method is deprecated and will be replaced with new signaturegetRelativeTranslation(SvgDrawContext). This is needed because xMove/yMove can contain relative values, so SvgDrawContext is needed to resolve them.- Returns:
- text relative translation
-
containsRelativeMove
Deprecated.This method is deprecated and will be replaced with new signaturecontainsRelativeMove(SvgDrawContext). This is needed because xMove/yMove can contain relative values, so SvgDrawContext is needed to resolve them.- Returns:
trueif there is a relative move,falseotherwise
-
containsAbsolutePositionChange
Deprecated.This method is deprecated and will be replaced with new signaturecontainsAbsolutePositionChange(SvgDrawContext). This is needed because x/y can contain relative values, so SvgDrawContext is needed to resolve them.- Returns:
trueif an absolute position is specified via x/y attributes,falseotherwise
-
getAbsolutePositionChanges
Deprecated.This method is deprecated and will be replaced with new signaturegetAbsolutePositionChanges(SvgDrawContext). This is needed because x/y can contain relative values, so SvgDrawContext is needed to resolve them.- Returns:
- text absolute position
-
getTextRectangle
Return the bounding rectangle of the text element.- Parameters:
context- currentSvgDrawContextbasePoint- end point of previous text element- Returns:
- created instance of
TextRectangle
-