public class CssMediaRule extends CssNestedAtRule
CssNestedAtRule
implementation for media rules.
body
Constructor and Description |
---|
CssMediaRule(String ruleParameters)
Creates a CssMediaRule .
|
Modifier and Type | Method and Description |
---|---|
List<CssRuleSet> |
getCssRuleSets(INode element, MediaDeviceDescription deviceDescription)
Gets a list of CssRuleSet objects.
|
boolean |
matchMediaDevice(MediaDeviceDescription deviceDescription)
Tries to match a media device.
|
addBodyCssDeclarations, addStatementsToBody, addStatementToBody, getRuleParameters, getStatements, toString
getRuleName
public CssMediaRule(String ruleParameters)
CssMediaRule
.
ruleParameters
- the rule parameters
public List<CssRuleSet> getCssRuleSets(INode element, MediaDeviceDescription deviceDescription)
CssStatement
CssRuleSet
objects.
getCssRuleSets
in class CssNestedAtRule
element
- a node
deviceDescription
- a media device description
public boolean matchMediaDevice(MediaDeviceDescription deviceDescription)
deviceDescription
- the device description
Copyright © 1998–2023 iText Group NV. All rights reserved.