FontViewer Class Reference

Shows a string in all available font able to display at least one of their chars. More...

List of all members.

Public Member Functions

 FontViewer ()
 Creates and displays a new FontViewer.

 FontViewer (int width, int height)
 Creates and displays a new FontViewer.

void showSample (String text)

Static Public Member Functions

void main (String args[])

Package Functions

void showFont (String fontName)
void addFonts (String text)

Package Attributes

JTextPane pane = null

Static Package Attributes

final int FONTSIZE = 18
 Font size to use in the window.

final String EXAMPLE_STRING = "aA äÄ щЩ γΓ ש ดี 本 は 한 ≠ ⠃⠗⠇"
final int UNICODE_MAX = 0xFFFF

Private Member Functions

void init (int width, int height)


Detailed Description

Shows a string in all available font able to display at least one of their chars.

A new frame is created to that purpose.

Definition at line 11 of file FontViewer.java.


Constructor & Destructor Documentation

FontViewer  )  [inline]
 

Creates and displays a new FontViewer.

Definition at line 22 of file FontViewer.java.

References init().

Referenced by main().

FontViewer int  width,
int  height
[inline]
 

Creates and displays a new FontViewer.

Parameters:
width Width of the frame
height Height of the frame

Definition at line 31 of file FontViewer.java.

References init().


Member Function Documentation

void addFonts String  text  )  [inline, package]
 

Definition at line 98 of file FontViewer.java.

References addFonts(), FONTSIZE, and pane.

Referenced by addFonts(), and showSample().

void init int  width,
int  height
[inline, private]
 

Definition at line 35 of file FontViewer.java.

References init(), and pane.

Referenced by FontViewer(), and init().

void main String  args[]  )  [inline, static]
 

Definition at line 188 of file FontViewer.java.

References FontViewer(), main(), and showFont().

Referenced by main().

void showFont String  fontName  )  [inline, package]
 

Definition at line 54 of file FontViewer.java.

References FONTSIZE, pane, showFont(), and UNICODE_MAX.

Referenced by main(), and showFont().

void showSample String  text  )  [inline]
 

Definition at line 48 of file FontViewer.java.

References addFonts(), EXAMPLE_STRING, pane, and showSample().

Referenced by showSample().


Member Data Documentation

final String EXAMPLE_STRING = "aA äÄ щЩ γΓ ש ดี 本 は 한 ≠ ⠃⠗⠇" [static, package]
 

Definition at line 14 of file FontViewer.java.

Referenced by showSample().

final int FONTSIZE = 18 [static, package]
 

Font size to use in the window.

Definition at line 13 of file FontViewer.java.

Referenced by addFonts(), and showFont().

JTextPane pane = null [package]
 

Definition at line 17 of file FontViewer.java.

Referenced by addFonts(), init(), showFont(), and showSample().

final int UNICODE_MAX = 0xFFFF [static, package]
 

Definition at line 15 of file FontViewer.java.

Referenced by showFont().


The documentation for this class was generated from the following file:
Generated on Sun Aug 15 11:56:54 2004 for International Input by doxygen 1.3.7