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.
IMPORTANT: Immutable after constructor.
-
-
Constructor Summary
Constructors Constructor Description StyleTracker(int size)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CalculatedStylederiveAll(CalculatedStyle start)booleanequals(Object obj)booleanhasStyles()static StyleTrackerwithNoStyles()StyleTrackerwithOutLast()StyleTrackerwithStyle(CascadedStyle style)
-
-
-
Method Detail
-
withStyle
public StyleTracker withStyle(CascadedStyle style)
-
withOutLast
public StyleTracker withOutLast()
-
hasStyles
public boolean hasStyles()
-
withNoStyles
public static StyleTracker withNoStyles()
-
deriveAll
public CalculatedStyle deriveAll(CalculatedStyle start)
-
-