Class DefaultSvgNodeRendererFactory
java.lang.Object
com.itextpdf.svg.renderers.factories.DefaultSvgNodeRendererFactory
- All Implemented Interfaces:
-
ISvgNodeRendererFactory
The default implementation of
ISvgNodeRendererFactory
that will be used by default by the entry points defined by this project.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSvgNodeRendererForTag
(IElementNode tag, ISvgNodeRenderer parent) Create a configured renderer based on the passed Svg tag and set its parent.boolean
isTagIgnored
(IElementNode tag) Checks whether the provided tag is an ignored tag of this factory or not.
-
Constructor Details
-
DefaultSvgNodeRendererFactory
public DefaultSvgNodeRendererFactory()Default constructor with defaultISvgNodeRenderer
creation logic.
-
-
Method Details
-
createSvgNodeRendererForTag
Description copied from interface:ISvgNodeRendererFactory
Create a configured renderer based on the passed Svg tag and set its parent.- Specified by:
-
createSvgNodeRendererForTag
in interfaceISvgNodeRendererFactory
- Parameters:
-
tag
- Representation of the Svg tag, with all style attributes set -
parent
- renderer of the parent tag - Returns:
- Configured ISvgNodeRenderer
-
isTagIgnored
Description copied from interface:ISvgNodeRendererFactory
Checks whether the provided tag is an ignored tag of this factory or not. If ignored, the factory won't process this IElementNode into an ISvgNodeRenderer.- Specified by:
-
isTagIgnored
in interfaceISvgNodeRendererFactory
- Parameters:
-
tag
- the IElementNode - Returns:
- true if ignored
-