public class CssStyleSheet extends Object
Constructor and Description |
---|
CssStyleSheet()
Creates a new CssStyleSheet instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addStatement(CssStatement statement)
Adds a CSS statement to the style sheet.
|
void |
appendCssStyleSheet(CssStyleSheet anotherCssStyleSheet)
Append another CSS style sheet to this one.
|
static Map<String,String> |
extractStylesFromRuleSets(List<CssRuleSet> ruleSets)
Gets the CSS declarations.
|
List<CssDeclaration> |
getCssDeclarations(INode node, MediaDeviceDescription deviceDescription)
Gets the CSS declarations.
|
List<CssRuleSet> |
getCssRuleSets(INode node, MediaDeviceDescription deviceDescription)
Gets the CSS rule sets.
|
List<CssStatement> |
getStatements()
Gets the CSS statements of this style sheet.
|
String |
toString() |
public CssStyleSheet()
CssStyleSheet
instance.
public void addStatement(CssStatement statement)
statement
- the CSS statement
public void appendCssStyleSheet(CssStyleSheet anotherCssStyleSheet)
anotherCssStyleSheet
- the other CSS style sheet
public List<CssStatement> getStatements()
public List<CssDeclaration> getCssDeclarations(INode node, MediaDeviceDescription deviceDescription)
node
- the node
deviceDescription
- the media device description
public static Map<String,String> extractStylesFromRuleSets(List<CssRuleSet> ruleSets)
ruleSets
- list of css rule sets
public List<CssRuleSet> getCssRuleSets(INode node, MediaDeviceDescription deviceDescription)
node
- the node
deviceDescription
- the device description
Copyright © 1998–2023 iText Group NV. All rights reserved.