Save This Page
Home » openjdk-7 » java » awt » im » [javadoc | source]
    1   /*
    2    * Copyright 1998-1999 Sun Microsystems, Inc.  All Rights Reserved.
    3    * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
    4    *
    5    * This code is free software; you can redistribute it and/or modify it
    6    * under the terms of the GNU General Public License version 2 only, as
    7    * published by the Free Software Foundation.  Sun designates this
    8    * particular file as subject to the "Classpath" exception as provided
    9    * by Sun in the LICENSE file that accompanied this code.
   10    *
   11    * This code is distributed in the hope that it will be useful, but WITHOUT
   12    * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   13    * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
   14    * version 2 for more details (a copy is included in the LICENSE file that
   15    * accompanied this code).
   16    *
   17    * You should have received a copy of the GNU General Public License version
   18    * 2 along with this work; if not, write to the Free Software Foundation,
   19    * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
   20    *
   21    * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
   22    * CA 95054 USA or visit www.sun.com if you need additional information or
   23    * have any questions.
   24    */
   25   
   26   package java.awt.im;
   27   
   28   
   29   /**
   30    * Defines additional Unicode subsets for use by input methods.  Unlike the
   31    * UnicodeBlock subsets defined in the <code>{@link
   32    * java.lang.Character.UnicodeBlock}</code> class, these constants do not
   33    * directly correspond to Unicode code blocks.
   34    *
   35    * @since   1.2
   36    */
   37   
   38   public final class InputSubset extends Character.Subset {
   39   
   40       private InputSubset(String name) {
   41           super(name);
   42       }
   43   
   44       /**
   45        * Constant for all Latin characters, including the characters
   46        * in the BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A,
   47        * LATIN_EXTENDED_B Unicode character blocks.
   48        */
   49       public static final InputSubset LATIN
   50           = new InputSubset("LATIN");
   51   
   52       /**
   53        * Constant for the digits included in the BASIC_LATIN Unicode character
   54        * block.
   55        */
   56       public static final InputSubset LATIN_DIGITS
   57           = new InputSubset("LATIN_DIGITS");
   58   
   59       /**
   60        * Constant for all Han characters used in writing Traditional Chinese,
   61        * including a subset of the CJK unified ideographs as well as Traditional
   62        * Chinese Han characters that may be defined as surrogate characters.
   63        */
   64       public static final InputSubset TRADITIONAL_HANZI
   65           = new InputSubset("TRADITIONAL_HANZI");
   66   
   67       /**
   68        * Constant for all Han characters used in writing Simplified Chinese,
   69        * including a subset of the CJK unified ideographs as well as Simplified
   70        * Chinese Han characters that may be defined as surrogate characters.
   71        */
   72       public static final InputSubset SIMPLIFIED_HANZI
   73           = new InputSubset("SIMPLIFIED_HANZI");
   74   
   75       /**
   76        * Constant for all Han characters used in writing Japanese, including a
   77        * subset of the CJK unified ideographs as well as Japanese Han characters
   78        * that may be defined as surrogate characters.
   79        */
   80       public static final InputSubset KANJI
   81           = new InputSubset("KANJI");
   82   
   83       /**
   84        * Constant for all Han characters used in writing Korean, including a
   85        * subset of the CJK unified ideographs as well as Korean Han characters
   86        * that may be defined as surrogate characters.
   87        */
   88       public static final InputSubset HANJA
   89           = new InputSubset("HANJA");
   90   
   91       /**
   92        * Constant for the halfwidth katakana subset of the Unicode halfwidth and
   93        * fullwidth forms character block.
   94        */
   95       public static final InputSubset HALFWIDTH_KATAKANA
   96           = new InputSubset("HALFWIDTH_KATAKANA");
   97   
   98       /**
   99        * Constant for the fullwidth ASCII variants subset of the Unicode halfwidth and
  100        * fullwidth forms character block.
  101        * @since 1.3
  102        */
  103       public static final InputSubset FULLWIDTH_LATIN
  104           = new InputSubset("FULLWIDTH_LATIN");
  105   
  106       /**
  107        * Constant for the fullwidth digits included in the Unicode halfwidth and
  108        * fullwidth forms character block.
  109        * @since 1.3
  110        */
  111       public static final InputSubset FULLWIDTH_DIGITS
  112           = new InputSubset("FULLWIDTH_DIGITS");
  113   
  114   }

Save This Page
Home » openjdk-7 » java » awt » im » [javadoc | source]