Module java.desktop
Package java.awt.font

Enum Class NumericShaper.Range

java.lang.Object
java.lang.Enum<NumericShaper.Range>
java.awt.font.NumericShaper.Range
All Implemented Interfaces:
Serializable, Comparable<NumericShaper.Range>, Constable
Enclosing class:
NumericShaper

public static enum NumericShaper.Range extends Enum<NumericShaper.Range>
A NumericShaper.Range represents a Unicode range of a script having its own decimal digits. For example, the THAI range has the Thai digits, THAI DIGIT ZERO (U+0E50) to THAI DIGIT NINE (U+0E59).

The Range enum replaces the traditional bit mask-based values (e.g., NumericShaper.ARABIC), and supports more Unicode ranges than the bit mask-based ones. For example, the following code using the bit mask:

 NumericShaper.getContextualShaper(NumericShaper.ARABIC |
                                     NumericShaper.TAMIL,
                                   NumericShaper.EUROPEAN);
 
can be written using this enum as:
 NumericShaper.getContextualShaper(EnumSet.of(
                                     NumericShaper.Range.ARABIC,
                                     NumericShaper.Range.TAMIL),
                                   NumericShaper.Range.EUROPEAN);
 

Since:
1.7