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