java.lang.Object | |
↳ | java.awt.font.NumericShaper |
The Class NumericShaper provides methods to convert latin character codes to unicode character codes. For tables of the character codes used, see unicode.org.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | ALL_RANGES | The Constant ALL_RANGES indicates all ranges. | |||||||||
int | ARABIC | The Constant ARABIC indicates the ARABIC range and decimal base. | |||||||||
int | BENGALI | The Constant BENGALI indicates the BENGALI range and decimal base. | |||||||||
int | DEVANAGARI | The Constant DEVANAGARI indicates the DEVANAGARI range and decimal base. | |||||||||
int | EASTERN_ARABIC | The Constant EASTERN_ARABIC indicates the ARABIC range and ARABIC_EXTENDED decimal base. | |||||||||
int | ETHIOPIC | The Constant ETHIOPIC indicates the ETHIOPIC range and decimal base. | |||||||||
int | EUROPEAN | The Constant EUROPEAN indicates the latin and extended range, and latin decimal base. | |||||||||
int | GUJARATI | The Constant GUJARATI indicates the GUJARATI range and decimal base. | |||||||||
int | GURMUKHI | The Constant GURMUKHI indicates the GURMUKHI range and decimal base. | |||||||||
int | KANNADA | The Constant KANNADA indicates the KANNADA range and decimal base. | |||||||||
int | KHMER | The Constant KHMER indicates the KHMER range and decimal base. | |||||||||
int | LAO | The Constant LAO indicates the LAO range and decimal base. | |||||||||
int | MALAYALAM | The Constant MALAYALAM indicates the MALAYALAM range and decimal base. | |||||||||
int | MONGOLIAN | The Constant MONGOLIAN indicates the MONGOLIAN range and decimal base. | |||||||||
int | MYANMAR | The Constant MYANMAR indicates the MYANMAR range and decimal base. | |||||||||
int | ORIYA | The Constant ORIYA indicates the ORIYA range and decimal base. | |||||||||
int | TAMIL | The Constant TAMIL indicates the TAMIL range and decimal base. | |||||||||
int | TELUGU | The Constant TELUGU indicates the TELUGU range and decimal base. | |||||||||
int | THAI | The Constant THAI indicates the THAI range and decimal base. | |||||||||
int | TIBETAN | The Constant TIBETAN indicates the TIBETAN range and decimal base. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this NumericShaper object with the specified Object.
| |||||||||||
Gets the NumericShaper for the specified unicode ranges
and default unicode range.
| |||||||||||
Gets the NumericShaper for the specified unicode ranges.
| |||||||||||
Gets the masks for all of the ranges supported by this NumericShaper,
packed into an int value using the logical OR logical operation
for multiple ranges:
NumericShaper.DEVANAGARI | NumericShaper.BENGALI.
| |||||||||||
Gets a NumericShaper for the specified unicode range.
| |||||||||||
Returns a hash code of this NumericShaper.
| |||||||||||
Checks if this NumericShaper is contextual (supporting
multiple script ranges) or not.
| |||||||||||
Transforms the encoding of the text, starting from the character
at index start and transforming count characters.
| |||||||||||
Transforms the encoding of the text, starting from the character
at index start and transforming count characters,
using the specified context.
| |||||||||||
Returns a string representation of this NumericShaper.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
The Constant ALL_RANGES indicates all ranges.
The Constant ARABIC indicates the ARABIC range and decimal base.
The Constant BENGALI indicates the BENGALI range and decimal base.
The Constant DEVANAGARI indicates the DEVANAGARI range and decimal base.
The Constant EASTERN_ARABIC indicates the ARABIC range and ARABIC_EXTENDED decimal base.
The Constant ETHIOPIC indicates the ETHIOPIC range and decimal base.
The Constant EUROPEAN indicates the latin and extended range, and latin decimal base.
The Constant GUJARATI indicates the GUJARATI range and decimal base.
The Constant GURMUKHI indicates the GURMUKHI range and decimal base.
The Constant KANNADA indicates the KANNADA range and decimal base.
The Constant KHMER indicates the KHMER range and decimal base.
The Constant LAO indicates the LAO range and decimal base.
The Constant MALAYALAM indicates the MALAYALAM range and decimal base.
The Constant MONGOLIAN indicates the MONGOLIAN range and decimal base.
The Constant MYANMAR indicates the MYANMAR range and decimal base.
The Constant ORIYA indicates the ORIYA range and decimal base.
The Constant TAMIL indicates the TAMIL range and decimal base.
The Constant TELUGU indicates the TELUGU range and decimal base.
The Constant THAI indicates the THAI range and decimal base.
The Constant TIBETAN indicates the TIBETAN range and decimal base.
Compares this NumericShaper object with the specified Object.
obj | the Object to be compared. |
---|
Gets the NumericShaper for the specified unicode ranges and default unicode range. The defaultContext parameter is used as the starting context (which indicates the language/script being used). The OR logical operation should be used for multiple ranges: NumericShaper.DEVANAGARI | NumericShaper.BENGALI. The NumericShaper returned by this method is contextual in that it supports multiple character ranges, depending on the context.
ranges | the unicode ranges. |
---|---|
defaultContext | the default, starting context. |
Gets the NumericShaper for the specified unicode ranges. The OR logical operation should be used for multiple ranges: NumericShaper.DEVANAGARI | NumericShaper.BENGALI. The NumericShaper returned by this method is contextual in that it supports multiple character ranges, depending on the context.
ranges | the unicode ranges. |
---|
Gets the masks for all of the ranges supported by this NumericShaper, packed into an int value using the logical OR logical operation for multiple ranges: NumericShaper.DEVANAGARI | NumericShaper.BENGALI.
Gets a NumericShaper for the specified unicode range. The NumericShaper supports only a single range and hence is not contextual.
singleRange | the specified unicode single range. |
---|
Returns a hash code of this NumericShaper.
Checks if this NumericShaper is contextual (supporting multiple script ranges) or not.
Transforms the encoding of the text, starting from the character at index start and transforming count characters.
text | the text to be shaped. |
---|---|
start | the start offset of the text. |
count | the number of characters to be shaped. |
Transforms the encoding of the text, starting from the character at index start and transforming count characters, using the specified context.
text | the text to be shaped. |
---|---|
start | the start offset of the text. |
count | the number of characters to be shaped. |
context | the context to be used for shaping. |
Returns a string representation of this NumericShaper.