Package com.openhtmltopdf.layout.counter
Class CounterContext
- java.lang.Object
-
- com.openhtmltopdf.layout.counter.CounterContext
-
- All Implemented Interfaces:
AbstractCounterContext
public class CounterContext extends Object implements AbstractCounterContext
-
-
Constructor Summary
Constructors Constructor Description CounterContext(LayoutContext ctx, CalculatedStyle style, Integer startIndex)A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentCounterValue(String name)List<Integer>getCurrentCounterValues(String name)
-
-
-
Constructor Detail
-
CounterContext
public CounterContext(LayoutContext ctx, CalculatedStyle style, Integer startIndex)
A CounterContext should really be reflected in the element hierarchy, but CalculatedStyles reflect the ancestor hierarchy just as well and also handles pseudo-elements seamlessly.
-
-
Method Detail
-
getCurrentCounterValue
public int getCurrentCounterValue(String name)
- Specified by:
getCurrentCounterValuein interfaceAbstractCounterContext
-
getCurrentCounterValues
public List<Integer> getCurrentCounterValues(String name)
- Specified by:
getCurrentCounterValuesin interfaceAbstractCounterContext
-
-