001 /*
002 * Copyright 1998-1999 Sun Microsystems, Inc. All Rights Reserved.
003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004 *
005 * This code is free software; you can redistribute it and/or modify it
006 * under the terms of the GNU General Public License version 2 only, as
007 * published by the Free Software Foundation. Sun designates this
008 * particular file as subject to the "Classpath" exception as provided
009 * by Sun in the LICENSE file that accompanied this code.
010 *
011 * This code is distributed in the hope that it will be useful, but WITHOUT
012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
014 * version 2 for more details (a copy is included in the LICENSE file that
015 * accompanied this code).
016 *
017 * You should have received a copy of the GNU General Public License version
018 * 2 along with this work; if not, write to the Free Software Foundation,
019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020 *
021 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
022 * CA 95054 USA or visit www.sun.com if you need additional information or
023 * have any questions.
024 */
025
026 package java.awt.im;
027
028 /**
029 * Defines additional Unicode subsets for use by input methods. Unlike the
030 * UnicodeBlock subsets defined in the <code>{@link
031 * java.lang.Character.UnicodeBlock}</code> class, these constants do not
032 * directly correspond to Unicode code blocks.
033 *
034 * @version 1.18, 05/05/07
035 * @since 1.2
036 */
037
038 public final class InputSubset extends Character.Subset {
039
040 private InputSubset(String name) {
041 super (name);
042 }
043
044 /**
045 * Constant for all Latin characters, including the characters
046 * in the BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A,
047 * LATIN_EXTENDED_B Unicode character blocks.
048 */
049 public static final InputSubset LATIN = new InputSubset("LATIN");
050
051 /**
052 * Constant for the digits included in the BASIC_LATIN Unicode character
053 * block.
054 */
055 public static final InputSubset LATIN_DIGITS = new InputSubset(
056 "LATIN_DIGITS");
057
058 /**
059 * Constant for all Han characters used in writing Traditional Chinese,
060 * including a subset of the CJK unified ideographs as well as Traditional
061 * Chinese Han characters that may be defined as surrogate characters.
062 */
063 public static final InputSubset TRADITIONAL_HANZI = new InputSubset(
064 "TRADITIONAL_HANZI");
065
066 /**
067 * Constant for all Han characters used in writing Simplified Chinese,
068 * including a subset of the CJK unified ideographs as well as Simplified
069 * Chinese Han characters that may be defined as surrogate characters.
070 */
071 public static final InputSubset SIMPLIFIED_HANZI = new InputSubset(
072 "SIMPLIFIED_HANZI");
073
074 /**
075 * Constant for all Han characters used in writing Japanese, including a
076 * subset of the CJK unified ideographs as well as Japanese Han characters
077 * that may be defined as surrogate characters.
078 */
079 public static final InputSubset KANJI = new InputSubset("KANJI");
080
081 /**
082 * Constant for all Han characters used in writing Korean, including a
083 * subset of the CJK unified ideographs as well as Korean Han characters
084 * that may be defined as surrogate characters.
085 */
086 public static final InputSubset HANJA = new InputSubset("HANJA");
087
088 /**
089 * Constant for the halfwidth katakana subset of the Unicode halfwidth and
090 * fullwidth forms character block.
091 */
092 public static final InputSubset HALFWIDTH_KATAKANA = new InputSubset(
093 "HALFWIDTH_KATAKANA");
094
095 /**
096 * Constant for the fullwidth ASCII variants subset of the Unicode halfwidth and
097 * fullwidth forms character block.
098 * @since 1.3
099 */
100 public static final InputSubset FULLWIDTH_LATIN = new InputSubset(
101 "FULLWIDTH_LATIN");
102
103 /**
104 * Constant for the fullwidth digits included in the Unicode halfwidth and
105 * fullwidth forms character block.
106 * @since 1.3
107 */
108 public static final InputSubset FULLWIDTH_DIGITS = new InputSubset(
109 "FULLWIDTH_DIGITS");
110
111 }
|