source: trunk/gcc/libjava/java/awt/im/InputSubset.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 4.7 KB
Line 
1/* InputSubset.java -- subsets of Unicode important in text input
2 Copyright (C) 2002 Free Software Foundation, Inc.
3
4This file is part of GNU Classpath.
5
6GNU Classpath is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2, or (at your option)
9any later version.
10
11GNU Classpath is distributed in the hope that it will be useful, but
12WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GNU Classpath; see the file COPYING. If not, write to the
18Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
1902111-1307 USA.
20
21Linking this library statically or dynamically with other modules is
22making a combined work based on this library. Thus, the terms and
23conditions of the GNU General Public License cover the whole
24combination.
25
26As a special exception, the copyright holders of this library give you
27permission to link this library with independent modules to produce an
28executable, regardless of the license terms of these independent
29modules, and to copy and distribute the resulting executable under
30terms of your choice, provided that you also meet, for each linked
31independent module, the terms and conditions of the license of that
32module. An independent module is a module which is not derived from
33or based on this library. If you modify this library, you may extend
34this exception to your version of the library, but you are not
35obligated to do so. If you do not wish to do so, delete this
36exception statement from your version. */
37
38package java.awt.im;
39
40/**
41 * Defines additional Unicode character blocks for use by input methods.
42 * These constants encompass several Unicode blocks, or portions thereof, for
43 * simplification over {@link Character.UnicodeBlock}.
44 *
45 * @author Eric Blake <ebb9@email.byu.edu>
46 * @since 1.2
47 * @status updated to 1.4
48 */
49public final class InputSubset extends java.lang.Character.Subset
50{ // XXX - FIXME Use fully qualified extends as gcj 3.1 workaround.
51 /**
52 * Constant for all Latin characters, including the characters in the
53 * BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A, LATIN_EXTENDED_B
54 * Unicode character blocks.
55 */
56 public static final InputSubset LATIN = new InputSubset("LATIN");
57
58 /**
59 * Constant for the digits included in the BASIC_LATIN Unicode character
60 * block.
61 */
62 public static final InputSubset LATIN_DIGITS
63 = new InputSubset("LATIN_DIGITS");
64
65 /**
66 * Constant for all Han characters used in writing Traditional Chinese,
67 * including a subset of the CJK unified ideographs as well as Traditional
68 * Chinese Han characters that may be defined as surrogate characters.
69 */
70 public static final InputSubset TRADITIONAL_HANZI
71 = new InputSubset("TRADITIONAL_HANZI");
72
73 /**
74 * Constant for all Han characters used in writing Simplified Chinese,
75 * including a subset of the CJK unified ideographs as well as Simplified
76 * Chinese Han characters that may be defined as surrogate characters.
77 */
78 public static final InputSubset SIMPLIFIED_HANZI
79 = new InputSubset("SIMPLIFIED_HANZI");
80
81 /**
82 * Constant for all Han characters used in writing Japanese, including a
83 * subset of the CJK unified ideographs as well as Japanese Han characters
84 * that may be defined as surrogate characters.
85 */
86 public static final InputSubset KANJI = new InputSubset("KANJI");
87
88 /**
89 * Constant for all Han characters used in writing Korean, including a
90 * subset of the CJK unified ideographs as well as Korean Han characters
91 * that may be defined as surrogate characters.
92 */
93 public static final InputSubset HANJA = new InputSubset("HANJA");
94
95 /**
96 * Constant for the halfwidth katakana subset of the Unicode halfwidth and
97 * fullwidth forms character block.
98 */
99 public static final InputSubset HALFWIDTH_KATAKANA
100 = new InputSubset("HALFWIDTH_KATAKANA");
101
102 /**
103 * Constant for the fullwidth ASCII variants subset of the Unicode
104 * halfwidth and fullwidth forms character block.
105 *
106 * @since 1.3
107 */
108 public static final InputSubset FULLWIDTH_LATIN
109 = new InputSubset("FULLWIDTH_LATIN");
110
111 /**
112 * Constant for the fullwidth digits included in the Unicode halfwidth and
113 * fullwidth forms character block.
114 *
115 * @since 1.3
116 */
117 public static final InputSubset FULLWIDTH_DIGITS
118 = new InputSubset("FULLWIDTH_DIGITS");
119
120 /**
121 * Construct a subset.
122 *
123 * @param name the subset name
124 */
125 private InputSubset(String name)
126 {
127 super(name);
128 }
129} // class InputSubset
Note: See TracBrowser for help on using the repository browser.