public class DefaultCssResolver extends Object implements ICssResolver
ICssResolver
interface.
Constructor and Description |
---|
DefaultCssResolver(INode treeRoot, MediaDeviceDescription mediaDeviceDescription, ResourceResolver resourceResolver)
Creates a new DefaultCssResolver instance.
|
DefaultCssResolver(INode treeRoot, ProcessorContext context)
Creates a new DefaultCssResolver instance.
|
Modifier and Type | Method and Description |
---|---|
List<CssFontFaceRule> |
getFonts()
Gets the list of fonts.
|
Map<String,String> |
resolveStyles(INode element, CssContext context)
Resolves the styles of a node.
|
public DefaultCssResolver(INode treeRoot, MediaDeviceDescription mediaDeviceDescription, ResourceResolver resourceResolver)
DefaultCssResolver
instance.
treeRoot
- the root node
mediaDeviceDescription
- the media device description
resourceResolver
- the resource resolver
public DefaultCssResolver(INode treeRoot, ProcessorContext context)
DefaultCssResolver
instance.
treeRoot
- the root node
context
- the processor context
public Map<String,String> resolveStyles(INode element, CssContext context)
ICssResolver
resolveStyles
in interface ICssResolver
element
- the node
context
- the CSS context
public List<CssFontFaceRule> getFonts()
CssFontFaceRule
instances
Copyright © 1998–2019 iText Group NV. All rights reserved.