public class DefaultSvgNodeRendererFactory extends Object implements ISvgNodeRendererFactory
ISvgNodeRendererFactory
that will be used by default by the entry points defined by this project.
Constructor and Description |
---|
DefaultSvgNodeRendererFactory()
Default constructor with default ISvgNodeRenderer creation logic.
|
DefaultSvgNodeRendererFactory(ISvgNodeRendererMapper mapper)
Deprecated.
Will be removed in 7.2. The user should use the custom
ISvgNodeRendererFactory implementation (or the custom DefaultSvgNodeRendererFactory extension) to create extensions of the factory.
|
Modifier and Type | Method and Description |
---|---|
ISvgNodeRenderer |
createSvgNodeRendererForTag(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.
|
public DefaultSvgNodeRendererFactory()
ISvgNodeRenderer
creation logic.
@Deprecated public DefaultSvgNodeRendererFactory(ISvgNodeRendererMapper mapper)
ISvgNodeRendererFactory
implementation (or the custom DefaultSvgNodeRendererFactory
extension) to create extensions of the factory.
ISvgNodeRendererMapper
implementation.
mapper
- the custom mapper implementation - if null, then we fall back to the DefaultSvgNodeRendererMapper
public ISvgNodeRenderer createSvgNodeRendererForTag(IElementNode tag, ISvgNodeRenderer parent)
ISvgNodeRendererFactory
createSvgNodeRendererForTag
in interface ISvgNodeRendererFactory
tag
- Representation of the Svg tag, with all style attributes set
parent
- renderer of the parent tag
public boolean isTagIgnored(IElementNode tag)
ISvgNodeRendererFactory
isTagIgnored
in interface ISvgNodeRendererFactory
tag
- the IElementNode
Copyright © 1998–2021 iText Group NV. All rights reserved.