Package org.daisy.dotify.api.formatter
Class NumeralField
- java.lang.Object
-
- org.daisy.dotify.api.formatter.NumeralField
-
- All Implemented Interfaces:
Field
- Direct Known Subclasses:
PagenumField
public class NumeralField extends Object implements Field
Provides a numeral field.
-
-
Constructor Summary
Constructors Constructor Description NumeralField(NumeralStyle style)Creates a new numeral field with the supplied style.NumeralField(NumeralStyle style, String textStyle)Creates a new numeral field with the supplied numeral and text styles
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumeralStylegetNumeralStyle()Gets the numeral style.StringgetTextStyle()The text style of the field, or null if no special style is used.
-
-
-
Constructor Detail
-
NumeralField
public NumeralField(NumeralStyle style)
Creates a new numeral field with the supplied style.- Parameters:
style- the style for this numeral
-
NumeralField
public NumeralField(NumeralStyle style, String textStyle)
Creates a new numeral field with the supplied numeral and text styles- Parameters:
style- the numeral styletextStyle- the text style
-
-
Method Detail
-
getNumeralStyle
public NumeralStyle getNumeralStyle()
Gets the numeral style.- Returns:
- the numeral style
-
getTextStyle
public String getTextStyle()
Description copied from interface:FieldThe text style of the field, or null if no special style is used.- Specified by:
getTextStylein interfaceField- Returns:
- the text style
-
-