Package com.itextpdf.svg.css.impl
Class SvgNodeRendererInheritanceResolver
java.lang.Object
com.itextpdf.svg.css.impl.SvgNodeRendererInheritanceResolver
Style and attribute inheritance resolver for
ISvgNodeRenderer
objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyInheritanceToSubTree
(ISvgNodeRenderer root, ISvgNodeRenderer subTree, SvgCssContext cssContext) Apply style and attribute inheritance to the tree formed by the root and the subTree.private static void
applyStyles
(ISvgNodeRenderer parent, ISvgNodeRenderer child, SvgCssContext cssContext)
-
Constructor Details
-
SvgNodeRendererInheritanceResolver
private SvgNodeRendererInheritanceResolver()
-
-
Method Details
-
applyInheritanceToSubTree
public static void applyInheritanceToSubTree(ISvgNodeRenderer root, ISvgNodeRenderer subTree, SvgCssContext cssContext) Apply style and attribute inheritance to the tree formed by the root and the subTree.- Parameters:
root
- the renderer to consider as the root of the subtreesubTree
- the tree ofISvgNodeRenderer
cssContext
- the current SVG CSS context
-
applyStyles
private static void applyStyles(ISvgNodeRenderer parent, ISvgNodeRenderer child, SvgCssContext cssContext)
-