superwaba.ext.palm.io.print.irprint
Class IrPrintFontMetrics

java.lang.Object
  |
  +--superwaba.ext.xplat.io.print.FontMetrics
        |
        +--superwaba.ext.palm.io.print.irprint.IrPrintFontMetrics

public class IrPrintFontMetrics
extends FontMetrics

This class implements the superwaba.ext.palm.io.print.FontMetrics interface, allowing you to get the font metrics for a given font in the PrintBoy library


Fields inherited from class superwaba.ext.xplat.io.print.FontMetrics
font
 
Constructor Summary
IrPrintFontMetrics(Font font)
          Instantiates a FontMetrics for the given font
 
Method Summary
 int getHeight()
          Returns the height of the current font.
 int getTextWidth(java.lang.String s)
          Returns the text width in the current font
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IrPrintFontMetrics

public IrPrintFontMetrics(Font font)
Instantiates a FontMetrics for the given font
Method Detail

getHeight

public int getHeight()
              throws PrinterException,
                     NotSupportedException
Returns the height of the current font.
Overrides:
getHeight in class FontMetrics

getTextWidth

public int getTextWidth(java.lang.String s)
                 throws PrinterException,
                        NotSupportedException
Returns the text width in the current font
Overrides:
getTextWidth in class FontMetrics