Package com.itextpdf.svg.renderers.impl
Interface ISvgTextNodeRenderer
-
- All Superinterfaces:
ISvgNodeRenderer
- All Known Implementing Classes:
TextLeafSvgNodeRenderer
,TextSvgBranchRenderer
,TextSvgTSpanBranchRenderer
public interface ISvgTextNodeRenderer extends ISvgNodeRenderer
Interface for <text> and <tspan> related renderers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
containsAbsolutePositionChange()
Deprecated.boolean
containsRelativeMove()
Deprecated.float[][]
getAbsolutePositionChanges()
Deprecated.float[]
getRelativeTranslation()
Deprecated.float
getTextContentLength(float parentFontSize, PdfFont font)
Deprecated.TextRectangle
getTextRectangle(SvgDrawContext context, Point basePoint)
Return the bounding rectangle of the text element.-
Methods inherited from interface com.itextpdf.svg.renderers.ISvgNodeRenderer
createDeepCopy, draw, getAttribute, getAttributeMapCopy, getObjectBoundingBox, getParent, setAttribute, setAttributesAndStyles, setParent
-
-
-
-
Method Detail
-
getTextContentLength
@Deprecated float getTextContentLength(float parentFontSize, PdfFont font)
Deprecated.Gets text content length.- Parameters:
parentFontSize
- parent font sizefont
- current font- Returns:
- text content length
-
getRelativeTranslation
@Deprecated float[] 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 boolean 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:
true
if there is a relative move,false
otherwise
-
containsAbsolutePositionChange
@Deprecated boolean 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:
true
if an absolute position is specified via x/y attributes,false
otherwise
-
getAbsolutePositionChanges
@Deprecated float[][] 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
TextRectangle getTextRectangle(SvgDrawContext context, Point basePoint)
Return the bounding rectangle of the text element.- Parameters:
context
- currentSvgDrawContext
basePoint
- end point of previous text element- Returns:
- created instance of
TextRectangle
-
-