src/solaris/classes/sun/awt/UNIXToolkit.java

Print this page




 297 
 298             if (subpixOrder == null || subpixOrder.equals("none")) {
 299                 aaHint = VALUE_TEXT_ANTIALIAS_ON;
 300             } else if (subpixOrder.equals("rgb")) {
 301                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_HRGB;
 302             } else if (subpixOrder.equals("bgr")) {
 303                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_HBGR;
 304             } else if (subpixOrder.equals("vrgb")) {
 305                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_VRGB;
 306             } else if (subpixOrder.equals("vbgr")) {
 307                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_VBGR;
 308             } else {
 309                 /* didn't recognise the string, but AA is requested */
 310                 aaHint = VALUE_TEXT_ANTIALIAS_ON;
 311             }
 312         } else {
 313             aaHint = VALUE_TEXT_ANTIALIAS_DEFAULT;
 314         }
 315         return new RenderingHints(KEY_TEXT_ANTIALIASING, aaHint);
 316     }























 317 }


 297 
 298             if (subpixOrder == null || subpixOrder.equals("none")) {
 299                 aaHint = VALUE_TEXT_ANTIALIAS_ON;
 300             } else if (subpixOrder.equals("rgb")) {
 301                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_HRGB;
 302             } else if (subpixOrder.equals("bgr")) {
 303                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_HBGR;
 304             } else if (subpixOrder.equals("vrgb")) {
 305                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_VRGB;
 306             } else if (subpixOrder.equals("vbgr")) {
 307                 aaHint = VALUE_TEXT_ANTIALIAS_LCD_VBGR;
 308             } else {
 309                 /* didn't recognise the string, but AA is requested */
 310                 aaHint = VALUE_TEXT_ANTIALIAS_ON;
 311             }
 312         } else {
 313             aaHint = VALUE_TEXT_ANTIALIAS_DEFAULT;
 314         }
 315         return new RenderingHints(KEY_TEXT_ANTIALIASING, aaHint);
 316     }
 317     
 318     private native boolean gtkCheckVersionImpl(int major, int minor, 
 319                 int micro);
 320 
 321     /**
 322      * Returns {@code true} if the GTK+ library is compatible with the given
 323      * version.
 324      * 
 325      * @param major
 326      *            The required major version.
 327      * @param minor
 328      *            The required minor version.
 329      * @param micro
 330      *            The required micro version.
 331      * @return {@code true} if the GTK+ library is compatible with the given
 332      *         version.
 333      */
 334     public boolean checkGtkVersion(int major, int minor, int micro) {
 335         if (loadGTK()) {
 336             return gtkCheckVersionImpl(major, minor, micro);
 337         }
 338         return false;
 339     }
 340 }