superwaba.ext.xplat.io.print.pboy
Class PBoyFontMetrics

java.lang.Object
  |
  +--superwaba.ext.xplat.io.print.FontMetrics
        |
        +--superwaba.ext.xplat.io.print.pboy.PBoyFontMetrics

public class PBoyFontMetrics
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
PBoyFontMetrics(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

PBoyFontMetrics

public PBoyFontMetrics(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