IT. Expert System.

Android Reference

NumericShaper


java.awt.font

Class NumericShaper

  • All Implemented Interfaces:
    Serializable


    public final class NumericShaper
    extends Object
    implements Serializable
    The Class NumericShaper provides methods to convert latin character codes to unicode character codes. For tables of the character codes used, see unicode.org.
    See Also:
    Serialized Form
    • Field Summary

      Fields
      Modifier and Type Field and Description
      static int ALL_RANGES
      The Constant ALL_RANGES indicates all ranges.
      static int ARABIC
      The Constant ARABIC indicates the ARABIC range and decimal base.
      static int BENGALI
      The Constant BENGALI indicates the BENGALI range and decimal base.
      static int DEVANAGARI
      The Constant DEVANAGARI indicates the DEVANAGARI range and decimal base.
      static int EASTERN_ARABIC
      The Constant EASTERN_ARABIC indicates the ARABIC range and ARABIC_EXTENDED decimal base.
      static int ETHIOPIC
      The Constant ETHIOPIC indicates the ETHIOPIC range and decimal base.
      static int EUROPEAN
      The Constant EUROPEAN indicates the latin and extended range, and latin decimal base.
      static int GUJARATI
      The Constant GUJARATI indicates the GUJARATI range and decimal base.
      static int GURMUKHI
      The Constant GURMUKHI indicates the GURMUKHI range and decimal base.
      static int KANNADA
      The Constant KANNADA indicates the KANNADA range and decimal base.
      static int KHMER
      The Constant KHMER indicates the KHMER range and decimal base.
      static int LAO
      The Constant LAO indicates the LAO range and decimal base.
      static int MALAYALAM
      The Constant MALAYALAM indicates the MALAYALAM range and decimal base.
      static int MONGOLIAN
      The Constant MONGOLIAN indicates the MONGOLIAN range and decimal base.
      static int MYANMAR
      The Constant MYANMAR indicates the MYANMAR range and decimal base.
      static int ORIYA
      The Constant ORIYA indicates the ORIYA range and decimal base.
      static int TAMIL
      The Constant TAMIL indicates the TAMIL range and decimal base.
      static int TELUGU
      The Constant TELUGU indicates the TELUGU range and decimal base.
      static int THAI
      The Constant THAI indicates the THAI range and decimal base.
      static int TIBETAN
      The Constant TIBETAN indicates the TIBETAN range and decimal base.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      boolean equals(Object obj)
      Compares this instance with the specified object and indicates if they are equal.
      static NumericShaper getContextualShaper(int ranges)
      Gets the NumericShaper for the specified unicode ranges.
      static NumericShaper getContextualShaper(int ranges, int defaultContext)
      Gets the NumericShaper for the specified unicode ranges and default unicode range.
      int getRanges()
      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.
      static NumericShaper getShaper(int singleRange)
      Gets a NumericShaper for the specified unicode range.
      int hashCode()
      Returns an integer hash code for this object.
      boolean isContextual()
      Checks if this NumericShaper is contextual (supporting multiple script ranges) or not.
      void shape(char[] text, int start, int count)
      Transforms the encoding of the text, starting from the character at index start and transforming count characters.
      void shape(char[] text, int start, int count, int context)
      Transforms the encoding of the text, starting from the character at index start and transforming count characters, using the specified context.
      String toString()
      Returns a string containing a concise, human-readable description of this object.
    • Field Detail

      • EUROPEAN

        public static final int EUROPEAN
        The Constant EUROPEAN indicates the latin and extended range, and latin decimal base.
        See Also:
        Constant Field Values
      • ARABIC

        public static final int ARABIC
        The Constant ARABIC indicates the ARABIC range and decimal base.
        See Also:
        Constant Field Values
      • EASTERN_ARABIC

        public static final int EASTERN_ARABIC
        The Constant EASTERN_ARABIC indicates the ARABIC range and ARABIC_EXTENDED decimal base.
        See Also:
        Constant Field Values
      • DEVANAGARI

        public static final int DEVANAGARI
        The Constant DEVANAGARI indicates the DEVANAGARI range and decimal base.
        See Also:
        Constant Field Values
      • BENGALI

        public static final int BENGALI
        The Constant BENGALI indicates the BENGALI range and decimal base.
        See Also:
        Constant Field Values
      • GURMUKHI

        public static final int GURMUKHI
        The Constant GURMUKHI indicates the GURMUKHI range and decimal base.
        See Also:
        Constant Field Values
      • GUJARATI

        public static final int GUJARATI
        The Constant GUJARATI indicates the GUJARATI range and decimal base.
        See Also:
        Constant Field Values
      • ORIYA

        public static final int ORIYA
        The Constant ORIYA indicates the ORIYA range and decimal base.
        See Also:
        Constant Field Values
      • TAMIL

        public static final int TAMIL
        The Constant TAMIL indicates the TAMIL range and decimal base.
        See Also:
        Constant Field Values
      • TELUGU

        public static final int TELUGU
        The Constant TELUGU indicates the TELUGU range and decimal base.
        See Also:
        Constant Field Values
      • KANNADA

        public static final int KANNADA
        The Constant KANNADA indicates the KANNADA range and decimal base.
        See Also:
        Constant Field Values
      • MALAYALAM

        public static final int MALAYALAM
        The Constant MALAYALAM indicates the MALAYALAM range and decimal base.
        See Also:
        Constant Field Values
      • THAI

        public static final int THAI
        The Constant THAI indicates the THAI range and decimal base.
        See Also:
        Constant Field Values
      • LAO

        public static final int LAO
        The Constant LAO indicates the LAO range and decimal base.
        See Also:
        Constant Field Values
      • TIBETAN

        public static final int TIBETAN
        The Constant TIBETAN indicates the TIBETAN range and decimal base.
        See Also:
        Constant Field Values
      • MYANMAR

        public static final int MYANMAR
        The Constant MYANMAR indicates the MYANMAR range and decimal base.
        See Also:
        Constant Field Values
      • ETHIOPIC

        public static final int ETHIOPIC
        The Constant ETHIOPIC indicates the ETHIOPIC range and decimal base.
        See Also:
        Constant Field Values
      • KHMER

        public static final int KHMER
        The Constant KHMER indicates the KHMER range and decimal base.
        See Also:
        Constant Field Values
      • MONGOLIAN

        public static final int MONGOLIAN
        The Constant MONGOLIAN indicates the MONGOLIAN range and decimal base.
        See Also:
        Constant Field Values
      • ALL_RANGES

        public static final int ALL_RANGES
        The Constant ALL_RANGES indicates all ranges.
        See Also:
        Constant Field Values
    • Method Detail

      • hashCode

        public int hashCode()
        Description copied from class: Object
        Returns an integer hash code for this object. By contract, any two objects for which Object.equals(java.lang.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.

        Overrides:
        hashCode in class Object
        Returns:
        this object's hash code.
        See Also:
        Object.equals(java.lang.Object)
      • equals

        public boolean equals(Object obj)
        Description copied from class: Object
        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 Object.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.

        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare this instance with.
        Returns:
        true if the specified object is equal to this Object; false otherwise.
        See Also:
        Object.hashCode()
      • toString

        public String toString()
        Description copied from class: Object
        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.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.
      • getContextualShaper

        public static NumericShaper getContextualShaper(int ranges,
                                        int defaultContext)
        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.
        Parameters:
        ranges - the unicode ranges.
        defaultContext - the default, starting context.
        Returns:
        the NumericShaper for the specified ranges.
      • getContextualShaper

        public static NumericShaper getContextualShaper(int ranges)
        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.
        Parameters:
        ranges - the unicode ranges.
        Returns:
        the NumericShaper for the specified ranges.
      • getRanges

        public int getRanges()
        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.
        Returns:
        all ranges of this NumericShaper.
      • getShaper

        public static NumericShaper getShaper(int singleRange)
        Gets a NumericShaper for the specified unicode range. The NumericShaper supports only a single range and hence is not contextual.
        Parameters:
        singleRange - the specified unicode single range.
        Returns:
        the NumericShaper for the specified unicode range.
      • isContextual

        public boolean isContextual()
        Checks if this NumericShaper is contextual (supporting multiple script ranges) or not.
        Returns:
        true, if this NumericShaper is contextual, false otherwise.
      • shape

        public void shape(char[] text,
                 int start,
                 int count,
                 int context)
        Transforms the encoding of the text, starting from the character at index start and transforming count characters, using the specified context.
        Parameters:
        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.
      • shape

        public void shape(char[] text,
                 int start,
                 int count)
        Transforms the encoding of the text, starting from the character at index start and transforming count characters.
        Parameters:
        text - the text to be shaped.
        start - the start offset of the text.
        count - the number of characters to be shaped.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1814 / 248358459. Delta: 0.14684 с