View RSS Feed

Java AWT

Java Abstract Window Toolkit (AWT)

  1. AWT Text Layout

    by , 03-04-2012 at 04:41 PM
    Text characters shall be laid out by using proper glyphs, in a proper position. This is done before the text gets displayed. To manage the text layouts, these Java 2D mechanisms are used.

    Following is managed by the TextLayout:
    1. Text layout
    2. Hit detection
    3. Highlighting

    To handle cases, the TextLayout gives these facilities.

    1. Strings along with mixed fonts
    2. Bidirectional text
    3. Mixed languages