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 instance with the specified object and indicates if they
are equal.
| |||||||||||
Gets the NumericShaper for the specified unicode ranges.
| |||||||||||
Gets the NumericShaper for the specified unicode ranges
and default unicode range.
| |||||||||||
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 an integer hash code for this object.
| |||||||||||
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,
using the specified context.
| |||||||||||
Transforms the encoding of the text, starting from the character
at index start and transforming count characters.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
|
[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 instance with the specified object and indicates if they
are equal. In order to be equal, o
must represent the same object
as this instance using a class-specific comparison. The general contract
is that this comparison should be reflexive, symmetric, and transitive.
Also, no object reference other than null is equal to null.
The default implementation returns true
only if this ==
o
. See Writing a correct
equals
method
if you intend implementing your own equals
method.
The general contract for the equals
and hashCode()
methods is that if equals
returns true
for
any two objects, then hashCode()
must return the same value for
these objects. This means that subclasses of Object
usually
override either both methods or neither of them.
obj | the object to compare this instance with. |
---|
true
if the specified object is equal to this Object
; false
otherwise.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 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 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 an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.
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, 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. |
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. |
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.