jmce - 1_02

jmce.swing
Class AbstractBitmapFont

java.lang.Object
  extended by jmce.swing.AbstractBitmapFont
All Implemented Interfaces:
BitmapFont
Direct Known Subclasses:
BitmapFont6x8, BitmapFont8x14, BitmapFont8x8

public abstract class AbstractBitmapFont
extends java.lang.Object
implements BitmapFont

Abstract implementations of bitapfont.

Version:
1.00
Author:
Mario Viara

Field Summary
protected  int[] bitmap
           
protected  int height
           
protected  int width
           
 
Method Summary
 int getBitmap(int ch, int y)
           
 int getHeight()
          Return the height of the font.
 boolean getPixel(int ch, int x, int y)
          Get a pixel from a specified char.
 int getWidth()
          Return the width of the font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bitmap

protected int[] bitmap

width

protected int width

height

protected int height
Method Detail

getPixel

public boolean getPixel(int ch,
                        int x,
                        int y)
Description copied from interface: BitmapFont
Get a pixel from a specified char.

Specified by:
getPixel in interface BitmapFont
Parameters:
ch - - Character 0 - 255
x - - X coordinate of the char.
y - - Y coordinate of the char.

getBitmap

public int getBitmap(int ch,
                     int y)

getWidth

public int getWidth()
Description copied from interface: BitmapFont
Return the width of the font.

Specified by:
getWidth in interface BitmapFont

getHeight

public int getHeight()
Description copied from interface: BitmapFont
Return the height of the font.

Specified by:
getHeight in interface BitmapFont

jmce - 1_02