Class NumeralField

  • All Implemented Interfaces:
    Field
    Direct Known Subclasses:
    PagenumField

    public class NumeralField
    extends Object
    implements Field
    Provides a numeral field.
    • 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 style
        textStyle - 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: Field
        The text style of the field, or null if no special style is used.
        Specified by:
        getTextStyle in interface Field
        Returns:
        the text style