1. /*
  2. * @(#)InputSubset.java 1.3 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.awt.im;
  8. /**
  9. * Defines additional Unicode subsets for use by input methods. Unlike the
  10. * UnicodeBlock subsets defined in the <code>{@link
  11. * java.lang.Character.UnicodeBlock}</code> class, these constants do not
  12. * directly correspond to Unicode code blocks.
  13. *
  14. * @version 1.3, 01/11/29
  15. * @since JDK1.2
  16. */
  17. public final class InputSubset extends Character.Subset {
  18. private InputSubset(String name) {
  19. super(name);
  20. }
  21. /**
  22. * Constant for all Latin characters, including the characters
  23. * in the BASIC_LATIN, LATIN_1_SUPPLEMENT, LATIN_EXTENDED_A,
  24. * LATIN_EXTENDED_B Unicode character blocks.
  25. */
  26. public static final InputSubset LATIN
  27. = new InputSubset("LATIN");
  28. /**
  29. * Constant for the digits included in the BASIC_LATIN Unicode character
  30. * block.
  31. */
  32. public static final InputSubset LATIN_DIGITS
  33. = new InputSubset("LATIN_DIGITS");
  34. /**
  35. * Constant for all Han characters used in writing Traditional Chinese,
  36. * including a subset of the CJK unified ideographs as well as Traditional
  37. * Chinese Han characters that may be defined as surrogate characters.
  38. */
  39. public static final InputSubset TRADITIONAL_HANZI
  40. = new InputSubset("TRADITIONAL_HANZI");
  41. /**
  42. * Constant for all Han characters used in writing Simplified Chinese,
  43. * including a subset of the CJK unified ideographs as well as Simplified
  44. * Chinese Han characters that may be defined as surrogate characters.
  45. */
  46. public static final InputSubset SIMPLIFIED_HANZI
  47. = new InputSubset("SIMPLIFIED_HANZI");
  48. /**
  49. * Constant for all Han characters used in writing Japanese, including a
  50. * subset of the CJK unified ideographs as well as Japanese Han characters
  51. * that may be defined as surrogate characters.
  52. */
  53. public static final InputSubset KANJI
  54. = new InputSubset("KANJI");
  55. /**
  56. * Constant for all Han characters used in writing Korean, including a
  57. * subset of the CJK unified ideographs as well as Korean Han characters
  58. * that may be defined as surrogate characters.
  59. */
  60. public static final InputSubset HANJA
  61. = new InputSubset("HANJA");
  62. /**
  63. * Constant for the halfwidth katakana subset of the Unicode halfwidth and
  64. * fullwidth forms character blocks.
  65. */
  66. public static final InputSubset HALFWIDTH_KATAKANA
  67. = new InputSubset("HALFWIDTH_KATAKANA");
  68. }