On this page
Enum Class NumericShaper.Range
- All Implemented Interfaces:
Serializable
,Comparable<NumericShaper.Range>
,Constable
- Enclosing class:
- NumericShaper
public static enum NumericShaper.Range extends Enum<NumericShaper.Range>
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:
can be written using this enum as:NumericShaper.getContextualShaper(NumericShaper.ARABIC | NumericShaper.TAMIL, NumericShaper.EUROPEAN);
NumericShaper.getContextualShaper(EnumSet.of( NumericShaper.Range.ARABIC, NumericShaper.Range.TAMIL), NumericShaper.Range.EUROPEAN);
- Since:
- 1.7
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum Constant | Description |
---|---|
ARABIC |
The Arabic range with the Arabic-Indic digits.
|
BALINESE |
The Balinese range with the Balinese digits.
|
BENGALI |
The Bengali range with the Bengali digits.
|
CHAM |
The Cham range with the Cham digits.
|
DEVANAGARI |
The Devanagari range with the Devanagari digits.
|
EASTERN_ARABIC |
The Arabic range with the Eastern Arabic-Indic digits.
|
ETHIOPIC |
The Ethiopic range with the Ethiopic digits.
|
EUROPEAN |
The Latin (European) range with the Latin (ASCII) digits.
|
GUJARATI |
The Gujarati range with the Gujarati digits.
|
GURMUKHI |
The Gurmukhi range with the Gurmukhi digits.
|
JAVANESE |
The Javanese range with the Javanese digits.
|
KANNADA |
The Kannada range with the Kannada digits.
|
KAYAH_LI |
The Kayah Li range with the Kayah Li digits.
|
KHMER |
The Khmer range with the Khmer digits.
|
LAO |
The Lao range with the Lao digits.
|
LEPCHA |
The Lepcha range with the Lepcha digits.
|
LIMBU |
The Limbu range with the Limbu digits.
|
MALAYALAM |
The Malayalam range with the Malayalam digits.
|
MEETEI_MAYEK |
The Meetei Mayek range with the Meetei Mayek digits.
|
MONGOLIAN |
The Mongolian range with the Mongolian digits.
|
MYANMAR |
The Myanmar range with the Myanmar digits.
|
MYANMAR_SHAN |
The Myanmar range with the Myanmar Shan digits.
|
MYANMAR_TAI_LAING |
The Myanmar Extended-B range with the Myanmar Tai Laing digits.
|
NEW_TAI_LUE |
The New Tai Lue range with the New Tai Lue digits.
|
NKO |
The N'Ko range with the N'Ko digits.
|
OL_CHIKI |
The Ol Chiki range with the Ol Chiki digits.
|
ORIYA |
The Oriya range with the Oriya digits.
|
SAURASHTRA |
The Saurashtra range with the Saurashtra digits.
|
SINHALA |
The Sinhala range with the Sinhala digits.
|
SUNDANESE |
The Sundanese range with the Sundanese digits.
|
TAI_THAM_HORA |
The Tai Tham Hora range with the Tai Tham Hora digits.
|
TAI_THAM_THAM |
The Tai Tham Tham range with the Tai Tham Tham digits.
|
TAMIL |
The Tamil range with the Tamil digits.
|
TELUGU |
The Telugu range with the Telugu digits.
|
THAI |
The Thai range with the Thai digits.
|
TIBETAN |
The Tibetan range with the Tibetan digits.
|
VAI |
The Vai range with the Vai digits.
|
Method Summary
Modifier and Type | Method | Description |
---|---|---|
static NumericShaper.Range |
valueOf |
Returns the enum constant of this class with the specified name.
|
static NumericShaper.Range[] |
values() |
Returns an array containing the constants of this enum class, in the order they are declared.
|
Enum Constant Details
EUROPEAN
public static final NumericShaper.Range EUROPEAN
ARABIC
public static final NumericShaper.Range ARABIC
EASTERN_ARABIC
public static final NumericShaper.Range EASTERN_ARABIC
DEVANAGARI
public static final NumericShaper.Range DEVANAGARI
BENGALI
public static final NumericShaper.Range BENGALI
GURMUKHI
public static final NumericShaper.Range GURMUKHI
GUJARATI
public static final NumericShaper.Range GUJARATI
ORIYA
public static final NumericShaper.Range ORIYA
TAMIL
public static final NumericShaper.Range TAMIL
TELUGU
public static final NumericShaper.Range TELUGU
KANNADA
public static final NumericShaper.Range KANNADA
MALAYALAM
public static final NumericShaper.Range MALAYALAM
THAI
public static final NumericShaper.Range THAI
LAO
public static final NumericShaper.Range LAO
TIBETAN
public static final NumericShaper.Range TIBETAN
MYANMAR
public static final NumericShaper.Range MYANMAR
ETHIOPIC
public static final NumericShaper.Range ETHIOPIC
KHMER
public static final NumericShaper.Range KHMER
MONGOLIAN
public static final NumericShaper.Range MONGOLIAN
NKO
public static final NumericShaper.Range NKO
MYANMAR_SHAN
public static final NumericShaper.Range MYANMAR_SHAN
LIMBU
public static final NumericShaper.Range LIMBU
NEW_TAI_LUE
public static final NumericShaper.Range NEW_TAI_LUE
BALINESE
public static final NumericShaper.Range BALINESE
SUNDANESE
public static final NumericShaper.Range SUNDANESE
LEPCHA
public static final NumericShaper.Range LEPCHA
OL_CHIKI
public static final NumericShaper.Range OL_CHIKI
VAI
public static final NumericShaper.Range VAI
SAURASHTRA
public static final NumericShaper.Range SAURASHTRA
KAYAH_LI
public static final NumericShaper.Range KAYAH_LI
CHAM
public static final NumericShaper.Range CHAM
TAI_THAM_HORA
public static final NumericShaper.Range TAI_THAM_HORA
TAI_THAM_THAM
public static final NumericShaper.Range TAI_THAM_THAM
JAVANESE
public static final NumericShaper.Range JAVANESE
MEETEI_MAYEK
public static final NumericShaper.Range MEETEI_MAYEK
SINHALA
public static final NumericShaper.Range SINHALA
- Since:
- 9
MYANMAR_TAI_LAING
public static final NumericShaper.Range MYANMAR_TAI_LAING
- Since:
- 9
Method Details
values
public static NumericShaper.Range[] values()
- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
public static NumericShaper.Range valueOf(String name)
- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
© 1993, 2021, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/font/NumericShaper.Range.html