All Packages  This Package  Class Hierarchy  Class Search  Index

Class bmsi.tui.TUIFontMetrics
java.lang.Object
   |
   +----java.awt.FontMetrics
           |
           +----bmsi.tui.TUIFontMetrics

  Summary

public class  TUIFontMetrics
     extends java.awt.FontMetrics
{
          // Constructors 1
     public TUIFontMetrics(Font, Dimension);

          // Methods 11
     public int bytesWidth(byte[], int, int);
     public int charWidth(char);
     public int charWidth(int);
     public int charsWidth(char[], int, int);
     public int getAscent();
     public int getDescent();
     public int getLeading();
     public int getMaxAdvance();
     public int getMaxAscent();
     public int getMaxDescent();
     public int stringWidth(String);
}

Lobotomized FontMetrics for TUI displays. TUI supports multiple fonts, but all are the same size. It is often possible to support simple size variations. For instance, a double high font could be implemented with 2 font banks - top part and bottom part. Some TUI hardware can set specific lines to double high or double wide. This does not fit into the window model and could only be used in a device specific manner. Typical TUI displays have from 2 - 4 128 char font banks. The Link terminals used by BMS have 4 banks. EGA/VGA text mode on PC's also has 4 banks. Software text mode emulation under Windows or OS/2, however, has only 2 banks which are hardwired to the IBMPC charset.




  Constructors

· TUIFontMetrics

Summary  |  Top

   public TUIFontMetrics(Font font, 
                         Dimension scale) 


  Methods

· getLeading

Summary  |  Top
   public int getLeading() 
Overrides:
getLeading in class FontMetrics


· getAscent

Summary  |  Top
   public int getAscent() 
Overrides:
getAscent in class FontMetrics


· getDescent

Summary  |  Top
   public int getDescent() 
Overrides:
getDescent in class FontMetrics


· getMaxAscent

Summary  |  Top
   public int getMaxAscent() 
Overrides:
getMaxAscent in class FontMetrics


· getMaxDescent

Summary  |  Top
   public int getMaxDescent() 
Overrides:
getMaxDescent in class FontMetrics


· getMaxAdvance

Summary  |  Top
   public int getMaxAdvance() 
Overrides:
getMaxAdvance in class FontMetrics


· charWidth

Summary  |  Top
   public int charWidth(int ch) 
Overrides:
charWidth in class FontMetrics


· charWidth

Summary  |  Top
   public int charWidth(char ch) 
Overrides:
charWidth in class FontMetrics


· stringWidth

Summary  |  Top
   public int stringWidth(String s) 
Overrides:
stringWidth in class FontMetrics


· charsWidth

Summary  |  Top
   public int charsWidth(char[] data, 
                         int pos, 
                         int len) 
Overrides:
charsWidth in class FontMetrics


· bytesWidth

Summary  |  Top
   public int bytesWidth(byte[] data, 
                         int pos, 
                         int len) 
Overrides:
bytesWidth in class FontMetrics


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7