< prev index next >

src/java.desktop/share/classes/java/awt/font/NumericShaper.java

Print this page
rev 55815 : 8225372: accessibility errors in tables in java.desktop files
Reviewed-by: aivanov
   1 /*
   2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. 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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  99  * from/to {@code NumericShaper.ARABIC}.  If any unmappable range
 100  * values are specified, such as {@code NumericShaper.Range.BALINESE},
 101  * those ranges are ignored.
 102  *
 103  * <p><b>Decimal Digits Precedence</b></p>
 104  *
 105  * <p>A Unicode range may have more than one set of decimal digits. If
 106  * multiple decimal digits sets are specified for the same Unicode
 107  * range, one of the sets will take precedence as follows.
 108  *
 109  * <table class="plain">
 110  * <caption>NumericShaper constants precedence</caption>
 111  * <thead>
 112  *   <tr>
 113  *     <th scope="col">Unicode Range
 114  *     <th scope="col">{@code NumericShaper} Constants
 115  *     <th scope="col">Precedence
 116  * </thead>
 117  * <tbody>
 118  *   <tr>
 119  *     <th scope="row" rowspan="2">Arabic
 120  *     <td>{@link NumericShaper#ARABIC NumericShaper.ARABIC}
 121  *     <br>
 122  *     {@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}
 123  *     <td>{@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}
 124  *   </tr>
 125  *   <tr>
 126  *     <th scope="row">{@link NumericShaper.Range#ARABIC}
 127  *     <br>
 128  *     {@link NumericShaper.Range#EASTERN_ARABIC}
 129  *     <td>{@link NumericShaper.Range#EASTERN_ARABIC}


 130  *   <tr>
 131  *     <th scope="row">Tai Tham
 132  *     <td>{@link NumericShaper.Range#TAI_THAM_HORA}
 133  *     <br>
 134  *     {@link NumericShaper.Range#TAI_THAM_THAM}
 135  *     <td>{@link NumericShaper.Range#TAI_THAM_THAM}
 136  * </tbody>
 137  * </table>
 138  *
 139  * @since 1.4
 140  */
 141 public final class NumericShaper implements java.io.Serializable {
 142 
 143     // For access from java.text.Bidi
 144     static {
 145         if (SharedSecrets.getJavaAWTFontAccess() == null) {
 146             SharedSecrets.setJavaAWTFontAccess(new JavaAWTFontAccessImpl());
 147         }
 148     }
 149 


   1 /*
   2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. 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.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


  99  * from/to {@code NumericShaper.ARABIC}.  If any unmappable range
 100  * values are specified, such as {@code NumericShaper.Range.BALINESE},
 101  * those ranges are ignored.
 102  *
 103  * <p><b>Decimal Digits Precedence</b></p>
 104  *
 105  * <p>A Unicode range may have more than one set of decimal digits. If
 106  * multiple decimal digits sets are specified for the same Unicode
 107  * range, one of the sets will take precedence as follows.
 108  *
 109  * <table class="plain">
 110  * <caption>NumericShaper constants precedence</caption>
 111  * <thead>
 112  *   <tr>
 113  *     <th scope="col">Unicode Range
 114  *     <th scope="col">{@code NumericShaper} Constants
 115  *     <th scope="col">Precedence
 116  * </thead>
 117  * <tbody>
 118  *   <tr>
 119  *     <th scope="rowgroup" rowspan="2">Arabic
 120  *     <td>{@link NumericShaper#ARABIC NumericShaper.ARABIC}
 121  *     <br>
 122  *     {@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}
 123  *     <td>{@link NumericShaper#EASTERN_ARABIC NumericShaper.EASTERN_ARABIC}
 124  *   </tr>
 125  *   <tr>
 126  *     <td>{@link NumericShaper.Range#ARABIC}
 127  *     <br>
 128  *     {@link NumericShaper.Range#EASTERN_ARABIC}
 129  *     <td>{@link NumericShaper.Range#EASTERN_ARABIC}
 130  * </tbody>
 131  * <tbody>
 132  *   <tr>
 133  *     <th scope="row">Tai Tham
 134  *     <td>{@link NumericShaper.Range#TAI_THAM_HORA}
 135  *     <br>
 136  *     {@link NumericShaper.Range#TAI_THAM_THAM}
 137  *     <td>{@link NumericShaper.Range#TAI_THAM_THAM}
 138  * </tbody>
 139  * </table>
 140  *
 141  * @since 1.4
 142  */
 143 public final class NumericShaper implements java.io.Serializable {
 144 
 145     // For access from java.text.Bidi
 146     static {
 147         if (SharedSecrets.getJavaAWTFontAccess() == null) {
 148             SharedSecrets.setJavaAWTFontAccess(new JavaAWTFontAccessImpl());
 149         }
 150     }
 151 


< prev index next >