Class IndicInputMethodImpl


  • class IndicInputMethodImpl
    extends java.lang.Object
    • Field Detail

      • KBD_MAP

        protected char[] KBD_MAP
      • SUBSTITUTION_TABLE

        protected char[][] SUBSTITUTION_TABLE
      • JOIN_WITH_NUKTA

        protected char[] JOIN_WITH_NUKTA
      • NUKTA_FORM

        protected char[] NUKTA_FORM
      • power

        private int power
      • extra

        private int extra
      • ZERO_TRAILING_HIT_INFO

        private static final java.awt.font.TextHitInfo ZERO_TRAILING_HIT_INFO
      • text

        private char[] text
      • committedChars

        private int committedChars
      • totalChars

        private int totalChars
      • lastCharWasVirama

        private boolean lastCharWasVirama
      • context

        private java.awt.im.spi.InputMethodContext context
    • Constructor Detail

      • IndicInputMethodImpl

        IndicInputMethodImpl​(char[] keyboardMap,
                             char[] joinWithNukta,
                             char[] nuktaForm,
                             char[][] substitutionTable)
    • Method Detail

      • nuktaIndex

        private int nuktaIndex​(char ch)
        Returns the index of the given character in the JOIN_WITH_NUKTA array. If character is not found, -1 is returned.
      • getMappedChar

        private char getMappedChar​(char originalChar)
        Returns the equivalent character for hindi locale.
        Parameters:
        originalChar - The original character.
      • highBit

        private static byte highBit​(int n)
      • setInputMethodContext

        void setInputMethodContext​(java.awt.im.spi.InputMethodContext context)
      • handleKeyTyped

        void handleKeyTyped​(java.awt.event.KeyEvent kevent)
      • endComposition

        void endComposition()