Class CalculatedStyle

java.lang.Object
com.openhtmltopdf.css.style.CalculatedStyle
Direct Known Subclasses:
EmptyStyle

public class CalculatedStyle
extends Object
A set of properties that apply to a single Element, derived from all matched properties following the rules for CSS cascade, inheritance, importance, specificity and sequence. A derived style is just like a style but (presumably) has additional information that allows relative properties to be assigned values, e.g. font attributes. Property values are fully resolved when this style is created. A property retrieved by name should always have only one value in this class (e.g. one-one map). Any methods to retrieve property values from an instance of this class require a valid LayoutContext be given to it, for some cases of property resolution. Generally, a programmer will not use this class directly, but will retrieve properties using a StyleReference implementation.
Author:
Torbjoern Gannholm, Patrick Wright