Package com.openhtmltopdf.layout
Class StyleTracker
- java.lang.Object
-
- com.openhtmltopdf.layout.StyleTracker
-
public class StyleTracker extends Object
A managed list ofCalculatedStyleobjects. It is used when keeping track of the styles which apply to a :first-line or :first-letter pseudo element.
-
-
Constructor Summary
Constructors Constructor Description StyleTracker()
-
Method Summary
Modifier and Type Method Description voidaddStyle(CascadedStyle style)voidclearStyles()StyleTrackercopyOf()CalculatedStylederiveAll(CalculatedStyle start)ListgetStyles()booleanhasStyles()voidremoveLast()
-
-
-
Method Detail
-
addStyle
public void addStyle(CascadedStyle style)
-
removeLast
public void removeLast()
-
hasStyles
public boolean hasStyles()
-
clearStyles
public void clearStyles()
-
deriveAll
public CalculatedStyle deriveAll(CalculatedStyle start)
-
getStyles
public List getStyles()
-
copyOf
public StyleTracker copyOf()
-
-