All Packages This Package Class Hierarchy Class Search Index
Class bmsi.tui.TUIFontMetrics
java.lang.Object
|
+----java.awt.FontMetrics
|
+----bmsi.tui.TUIFontMetrics
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.
public TUIFontMetrics(Font font,
Dimension scale)
public int getLeading()
- Overrides:
- getLeading in class FontMetrics
public int getAscent()
- Overrides:
- getAscent in class FontMetrics
public int getDescent()
- Overrides:
- getDescent in class FontMetrics
public int getMaxAscent()
- Overrides:
- getMaxAscent in class FontMetrics
public int getMaxDescent()
- Overrides:
- getMaxDescent in class FontMetrics
public int getMaxAdvance()
- Overrides:
- getMaxAdvance in class FontMetrics
public int charWidth(int ch)
- Overrides:
- charWidth in class FontMetrics
public int charWidth(char ch)
- Overrides:
- charWidth in class FontMetrics
public int stringWidth(String s)
- Overrides:
- stringWidth in class FontMetrics
public int charsWidth(char[] data,
int pos,
int len)
- Overrides:
- charsWidth in class FontMetrics
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