public interface CounterStyle
| Modifier and Type | Field and Description |
|---|---|
static CounterStyle |
DECIMAL |
static CounterStyle |
DISC |
static CounterStyle |
LOWER_ALPHA |
static CounterStyle |
LOWER_ROMAN |
static CounterStyle |
UPPER_ALPHA |
static CounterStyle |
UPPER_ROMAN |
| Modifier and Type | Method and Description |
|---|---|
static CounterStyle |
constant(String symbol)
Create a constant CounterStyle (cyclic with a single symbol)
|
static CounterStyle |
cycle(Iterable<String> symbols)
Create a cyclic CounterStyle
|
String |
format(int counterValue) |
String |
format(int counterValue,
boolean withPrefixAndSuffix) |
static CounterStyle |
fromSymbolsFunction(cz.vutbr.web.css.Term<?> term)
Create a CounterStyle from a
symbols() function |
String |
getTextTransform(int counterValue)
Deprecated.
|
static Map<String,CounterStyle> |
parseCounterStyleRules(Iterable<org.daisy.braille.css.RuleCounterStyle> style)
Create a map of named CounterStyle from a set of
@counter-style rules. |
static CounterStyle |
predefined(String name)
Return the predefined counter style with the given name, or
null if no counter style
with that name exists. |
static final CounterStyle DECIMAL
static final CounterStyle LOWER_ALPHA
static final CounterStyle UPPER_ALPHA
static final CounterStyle LOWER_ROMAN
static final CounterStyle UPPER_ROMAN
static final CounterStyle DISC
String format(int counterValue)
String format(int counterValue, boolean withPrefixAndSuffix)
@Deprecated String getTextTransform(int counterValue)
static CounterStyle fromSymbolsFunction(cz.vutbr.web.css.Term<?> term) throws IllegalArgumentException
symbols() functionIllegalArgumentExceptionstatic Map<String,CounterStyle> parseCounterStyleRules(Iterable<org.daisy.braille.css.RuleCounterStyle> style)
@counter-style rules.static CounterStyle predefined(String name)
null if no counter style
with that name exists.static CounterStyle constant(String symbol)
static CounterStyle cycle(Iterable<String> symbols)
Copyright © 2010–2025 The DAISY Consortium. All rights reserved.