Example usage for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_HBGR

List of usage examples for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_HBGR

Introduction

In this page you can find the example usage for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_HBGR.

Prototype

Object VALUE_TEXT_ANTIALIAS_LCD_HBGR

To view the source code for java.awt RenderingHints VALUE_TEXT_ANTIALIAS_LCD_HBGR.

Click Source Link

Document

Text antialiasing hint value -- request that text be displayed optimised for an LCD display with subpixels in order from display left to right of B,G,R such that the horizontal subpixel resolution is three times that of the full pixel horizontal resolution (HBGR).

Usage

From source file:TextQualityDemoVALUE_TEXT_ANTIALIAS_LCD_HBGR.java

public static void main(String[] args) {
    JFrame frame = new JFrame("LCD Text Demo");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setPreferredSize(new Dimension(630, 460));
    frame.setContentPane(new MyPanel(RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HBGR));
    frame.pack();//from w w w  .j  a  va  2  s  .  c o  m
    frame.setVisible(true);
}