Package com.openhtmltopdf.css.sheet
Class FontFaceRule
- java.lang.Object
-
- com.openhtmltopdf.css.sheet.FontFaceRule
-
- All Implemented Interfaces:
RulesetContainer
public class FontFaceRule extends java.lang.Object implements RulesetContainer
-
-
Field Summary
Fields Modifier and Type Field Description private CalculatedStyle
_calculatedStyle
private int
_origin
private Ruleset
_ruleset
-
Constructor Summary
Constructors Constructor Description FontFaceRule(int origin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addContent(Ruleset ruleset)
CalculatedStyle
getCalculatedStyle()
int
getOrigin()
boolean
hasFontFamily()
boolean
hasFontStyle()
boolean
hasFontWeight()
private boolean
hasProperty(java.lang.String property)
void
setOrigin(int origin)
-
-
-
Field Detail
-
_origin
private int _origin
-
_ruleset
private Ruleset _ruleset
-
_calculatedStyle
private CalculatedStyle _calculatedStyle
-
-
Method Detail
-
addContent
public void addContent(Ruleset ruleset)
- Specified by:
addContent
in interfaceRulesetContainer
-
getOrigin
public int getOrigin()
- Specified by:
getOrigin
in interfaceRulesetContainer
-
setOrigin
public void setOrigin(int origin)
-
getCalculatedStyle
public CalculatedStyle getCalculatedStyle()
-
hasProperty
private boolean hasProperty(java.lang.String property)
-
hasFontFamily
public boolean hasFontFamily()
-
hasFontWeight
public boolean hasFontWeight()
-
hasFontStyle
public boolean hasFontStyle()
-
-