public class SvgStyleResolver extends Object implements ICssResolver
Constructor and Description |
---|
SvgStyleResolver()
Creates a SvgStyleResolver.
|
SvgStyleResolver(INode rootNode, SvgProcessorContext context)
Creates a SvgStyleResolver.
|
SvgStyleResolver(InputStream defaultCssStream)
Creates a SvgStyleResolver with a given default CSS.
|
Modifier and Type | Method and Description |
---|---|
List<CssFontFaceRule> |
getFonts()
Gets the list of fonts.
|
Map<String,String> |
resolveNativeStyles(INode node, AbstractCssContext cssContext)
Resolves node styles without inheritance of parent element styles.
|
Map<String,String> |
resolveStyles(INode node, AbstractCssContext context)
Resolves the styles of a node given the passed context.
|
public SvgStyleResolver(InputStream defaultCssStream) throws IOException
SvgStyleResolver
with a given default CSS.
defaultCssStream
- the default CSS
IOException
public SvgStyleResolver()
public SvgStyleResolver(INode rootNode, SvgProcessorContext context)
rootNode
- node to collect css from
context
- the processor context
public Map<String,String> resolveStyles(INode node, AbstractCssContext context)
ICssResolver
resolveStyles
in interface ICssResolver
node
- the node
context
- the CSS context (RootFontSize, etc.)
public Map<String,String> resolveNativeStyles(INode node, AbstractCssContext cssContext)
node
- the node
cssContext
- the CSS context (RootFontSize, etc.)
public List<CssFontFaceRule> getFonts()
CssFontFaceRule
instances
Copyright © 1998–2020 iText Group NV. All rights reserved.